1570af302Sopenharmony_ci#include <stdint.h>
2570af302Sopenharmony_ci#include <unistd.h>
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#define T_LOC2(l) __FILE__ ":" #l
5570af302Sopenharmony_ci#define T_LOC1(l) T_LOC2(l)
6570af302Sopenharmony_ci#define t_error(...) t_printf(T_LOC1(__LINE__) ": " __VA_ARGS__)
7570af302Sopenharmony_ci
8570af302Sopenharmony_ciextern volatile int t_status;
9570af302Sopenharmony_ci
10570af302Sopenharmony_ciint t_printf(const char *s, ...);
11