Fix for log_failure macro expansion in helper.hpp: CodeBody gen_ast_inlines()

This commit is contained in:
Edward R. Gonzalez 2023-08-08 15:53:10 -04:00
parent 67d02c1f62
commit bb35444be9
2 changed files with 4 additions and 1 deletions

View File

@ -597,7 +597,7 @@ String AST::to_string()
break;
case Preprocess_Include:
result.append_fmt( "#include \"%s\"\n", Content );
result.append_fmt( "#include \"%s\"\n\n", Content );
break;
case Preprocess_ElIf:

View File

@ -333,7 +333,9 @@ CodeBody gen_etoktype( char const* etok_path, char const* attr_path )
CodeBody gen_ast_inlines()
{
#pragma push_macro("rcast")
#pragma push_macro("log_failure")
#undef rcast
#undef log_failure
char const* code_impl_tmpl = stringize(
\n
char const* <typename>::debug_str()
@ -600,4 +602,5 @@ CodeBody gen_ast_inlines()
return result;
#pragma pop_macro("rcast")
#pragma pop_macro("log_failure")
}