Commit 63b0d5c3 authored by Maxime Perrotin's avatar Maxime Perrotin

Report semantic errors after preprocessing backend

parent 810fe06a
This diff is collapsed.
......@@ -153,6 +153,13 @@ void C_End()
if (get_context()->glue) {
Preprocessing_Backend(get_system_ast());
}
/*
* Preprocessing may have raised some further semantic errors.
*/
if (error_count > 0) {
fprintf(stderr, "\nFound %d errors.. Aborting...\n", error_count);
exit(1);
}
/*
* Debug mode (userflag -test) : dump the result of the transformation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment