mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Fix for log_failure
macro expansion in helper.hpp: CodeBody gen_ast_inlines()
This commit is contained in:
parent
67d02c1f62
commit
bb35444be9
@ -597,7 +597,7 @@ String AST::to_string()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Preprocess_Include:
|
case Preprocess_Include:
|
||||||
result.append_fmt( "#include \"%s\"\n", Content );
|
result.append_fmt( "#include \"%s\"\n\n", Content );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Preprocess_ElIf:
|
case Preprocess_ElIf:
|
||||||
|
@ -333,7 +333,9 @@ CodeBody gen_etoktype( char const* etok_path, char const* attr_path )
|
|||||||
CodeBody gen_ast_inlines()
|
CodeBody gen_ast_inlines()
|
||||||
{
|
{
|
||||||
#pragma push_macro("rcast")
|
#pragma push_macro("rcast")
|
||||||
|
#pragma push_macro("log_failure")
|
||||||
#undef rcast
|
#undef rcast
|
||||||
|
#undef log_failure
|
||||||
char const* code_impl_tmpl = stringize(
|
char const* code_impl_tmpl = stringize(
|
||||||
\n
|
\n
|
||||||
char const* <typename>::debug_str()
|
char const* <typename>::debug_str()
|
||||||
@ -600,4 +602,5 @@ CodeBody gen_ast_inlines()
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
#pragma pop_macro("rcast")
|
#pragma pop_macro("rcast")
|
||||||
|
#pragma pop_macro("log_failure")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user