From dc77ec733f8f08034ef02338624b9ce4ac90fcf6 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 22 Dec 2022 13:15:48 -0500 Subject: [PATCH] IPCCompiler: Fix build when GENERATE_DEBUG is enabled 1. We don't need to escape the quotes in the dbgln() statements because these are raw strings. 2. The dbgln() statements must end with a semicolon. --- Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index aa60b35ea7..6d822ddd7e 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -595,7 +595,7 @@ public: if (stream.handle_any_error()) {)~~~"); if constexpr (GENERATE_DEBUG) { generator.appendln(R"~~~( - dbgln(\"Failed to read message endpoint magic\"))~~~"); + dbgln("Failed to read message endpoint magic");)~~~"); } generator.appendln(R"~~~( return {}; @@ -604,7 +604,7 @@ public: if (message_endpoint_magic != @endpoint.magic@) {)~~~"); if constexpr (GENERATE_DEBUG) { generator.appendln(R"~~~( - dbgln(\"@endpoint.name@: Endpoint magic number message_endpoint_magic != @endpoint.magic@, not my message! (the other endpoint may have handled it)\"))~~~"); + dbgln("@endpoint.name@: Endpoint magic number message_endpoint_magic != @endpoint.magic@, not my message! (the other endpoint may have handled it)");)~~~"); } generator.appendln(R"~~~( return {}; @@ -615,7 +615,7 @@ public: if (stream.handle_any_error()) {)~~~"); if constexpr (GENERATE_DEBUG) { generator.appendln(R"~~~( - dbgln(\"Failed to read message ID\"))~~~"); + dbgln("Failed to read message ID");)~~~"); } generator.appendln(R"~~~( return {}; @@ -646,7 +646,7 @@ public: default:)~~~"); if constexpr (GENERATE_DEBUG) { generator.appendln(R"~~~( - dbgln(\"Failed to decode @endpoint.name@.({})\", message_id))~~~"); + dbgln("Failed to decode @endpoint.name@.({})", message_id);)~~~"); } generator.appendln(R"~~~( return {}; @@ -655,7 +655,7 @@ public: if (stream.handle_any_error()) {)~~~"); if constexpr (GENERATE_DEBUG) { generator.appendln(R"~~~( - dbgln(\"Failed to read the message\");)~~~"); + dbgln("Failed to read the message");)~~~"); } generator.appendln(R"~~~( return {};