absyntax_utils/spec_init_separator.cc
changeset 596 4efb11e44065
parent 350 2c3c4dc34979
child 810 d9c48ad646f1
equal deleted inserted replaced
595:c41975a290ce 596:4efb11e44065
    35  * (for e.g. simple_spec_init_c), into a type specificiation part,
    35  * (for e.g. simple_spec_init_c), into a type specificiation part,
    36  * and a default value part.
    36  * and a default value part.
    37  */
    37  */
    38 
    38 
    39 #include "spec_init_separator.hh"
    39 #include "spec_init_separator.hh"
       
    40 #include "../main.hh" // required for ERROR() and ERROR_MSG() macros.
       
    41 
    40 
    42 
    41 //#define DEBUG
    43 //#define DEBUG
    42 #ifdef DEBUG
    44 #ifdef DEBUG
    43 #define TRACE(classname) printf("\n____%s____\n",classname);
    45 #define TRACE(classname) printf("\n____%s____\n",classname);
    44 #else
    46 #else
    45 #define TRACE(classname)
    47 #define TRACE(classname)
    46 #endif
    48 #endif
    47 
    49 
    48 #define ERROR error_exit(__FILE__,__LINE__)
       
    49 /* function defined in main.cc */
       
    50 extern void error_exit(const char *file_name, int line_no);
       
    51 
    50 
    52 
    51 
    53 spec_init_sperator_c *spec_init_sperator_c::get_class_instance(void) {
    52 spec_init_sperator_c *spec_init_sperator_c::get_class_instance(void) {
    54   if (NULL == class_instance)
    53   if (NULL == class_instance)
    55     class_instance = new spec_init_sperator_c();
    54     class_instance = new spec_init_sperator_c();