From bb35444be9813eb2500186b0aeb396ea73b43062 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 8 Aug 2023 15:53:10 -0400 Subject: [PATCH] Fix for `log_failure` macro expansion in helper.hpp: `CodeBody gen_ast_inlines()` --- project/components/ast.cpp | 2 +- project/helpers/helper.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/project/components/ast.cpp b/project/components/ast.cpp index 40eab2e..10ddf1f 100644 --- a/project/components/ast.cpp +++ b/project/components/ast.cpp @@ -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: diff --git a/project/helpers/helper.hpp b/project/helpers/helper.hpp index 69a0135..302d430 100644 --- a/project/helpers/helper.hpp +++ b/project/helpers/helper.hpp @@ -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* ::debug_str() @@ -600,4 +602,5 @@ CodeBody gen_ast_inlines() return result; #pragma pop_macro("rcast") +#pragma pop_macro("log_failure") }