1 #include <stdint.h> 2 #include <unistd.h> 3 4 #define T_LOC2(l) __FILE__ ":" #l 5 #define T_LOC1(l) T_LOC2(l) 6 #define t_error(...) t_printf(T_LOC1(__LINE__) ": " __VA_ARGS__) 7 8 extern volatile int t_status; 9 10 int t_printf(const char *s, ...); 11