main.hh
changeset 654 7421cb63defa
parent 645 e01ede1c9862
child 760 d736dc9e9e51
equal deleted inserted replaced
653:ea78924a1f60 654:7421cb63defa
    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