stage4/generate_c/generate_c.cc
changeset 596 4efb11e44065
parent 594 c8092e909886
child 612 c062ff18d04f
--- a/stage4/generate_c/generate_c.cc	Thu Jun 14 17:50:37 2012 +0100
+++ b/stage4/generate_c/generate_c.cc	Fri Jun 15 19:54:33 2012 +0100
@@ -36,6 +36,7 @@
 #include "../../util/dsymtable.hh"
 #include "../../absyntax/visitor.hh"
 #include "../../absyntax_utils/absyntax_utils.hh"
+#include "../../main.hh" // required for ERROR() and ERROR_MSG() macros.
 
 #include "../stage4.hh"
 
@@ -46,9 +47,6 @@
 #define TRACE(classname)
 #endif
 
-#define ERROR error_exit(__FILE__,__LINE__)
-/* function defined in main.cc */
-extern void error_exit(const char *file_name, int line_no);
 
 
 #define STAGE4_ERROR(symbol1, symbol2, ...) {stage4err("while generating C code", symbol1, symbol2, __VA_ARGS__); exit(EXIT_FAILURE);}