24 #define prt_error(msg) \
25 prt_error_line_file(msg, __LINE__, __FILE__)
27 #define prt_warning(msg) \
28 prt_warning_line_file(msg, __LINE__, __FILE__)
30 #define prt_assert(cond, msg) \
31 prt_assert_line_file(cond, msg, __LINE__, __FILE__)
void prt_assert_line_file(int cond, char *msg, int line, char *file)
Check an assertion and exit on error. Print an error message.
void prt_warning_line_file(char *msg, int line, char *file)
Print a warning and continue.
void prt_error_line_file(char *msg, int line, char *file)
Print an error message and exit.