equal
deleted
inserted
replaced
38 |
38 |
39 /* Function used throughout the code --> used to report failed assertions (i.e. internal compiler errors)! */ |
39 /* Function used throughout the code --> used to report failed assertions (i.e. internal compiler errors)! */ |
40 #include <stddef.h> /* required for NULL */ |
40 #include <stddef.h> /* required for NULL */ |
41 |
41 |
42 #define ERROR error_exit(__FILE__,__LINE__) |
42 #define ERROR error_exit(__FILE__,__LINE__) |
43 #define ERROR_MSG(msg, ...) error_exit(__FILE__,__LINE__, msg) |
43 #define ERROR_MSG(msg, ...) error_exit(__FILE__,__LINE__, msg, ## __VA_ARGS__) |
44 // #define ERROR_MSG(msg, ...) error_exit(__FILE__,__LINE__, msg, __VA_ARGS__) |
|
45 |
44 |
46 extern void error_exit(const char *file_name, int line_no, const char *errmsg = NULL, ...); |
45 extern void error_exit(const char *file_name, int line_no, const char *errmsg = NULL, ...); |
47 |
46 |
48 |
47 |
49 |
48 |