Browse Source

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.
Timothy Flynn 2 years ago
parent
commit
dc77ec733f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp

+ 5 - 5
Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp

@@ -595,7 +595,7 @@ public:
         if (stream.handle_any_error()) {)~~~");
         if (stream.handle_any_error()) {)~~~");
     if constexpr (GENERATE_DEBUG) {
     if constexpr (GENERATE_DEBUG) {
         generator.appendln(R"~~~(
         generator.appendln(R"~~~(
-                dbgln(\"Failed to read message endpoint magic\"))~~~");
+            dbgln("Failed to read message endpoint magic");)~~~");
     }
     }
     generator.appendln(R"~~~(
     generator.appendln(R"~~~(
             return {};
             return {};
@@ -604,7 +604,7 @@ public:
         if (message_endpoint_magic != @endpoint.magic@) {)~~~");
         if (message_endpoint_magic != @endpoint.magic@) {)~~~");
     if constexpr (GENERATE_DEBUG) {
     if constexpr (GENERATE_DEBUG) {
         generator.appendln(R"~~~(
         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"~~~(
     generator.appendln(R"~~~(
             return {};
             return {};
@@ -615,7 +615,7 @@ public:
         if (stream.handle_any_error()) {)~~~");
         if (stream.handle_any_error()) {)~~~");
     if constexpr (GENERATE_DEBUG) {
     if constexpr (GENERATE_DEBUG) {
         generator.appendln(R"~~~(
         generator.appendln(R"~~~(
-                dbgln(\"Failed to read message ID\"))~~~");
+            dbgln("Failed to read message ID");)~~~");
     }
     }
     generator.appendln(R"~~~(
     generator.appendln(R"~~~(
             return {};
             return {};
@@ -646,7 +646,7 @@ public:
         default:)~~~");
         default:)~~~");
     if constexpr (GENERATE_DEBUG) {
     if constexpr (GENERATE_DEBUG) {
         generator.appendln(R"~~~(
         generator.appendln(R"~~~(
-                dbgln(\"Failed to decode @endpoint.name@.({})\", message_id))~~~");
+            dbgln("Failed to decode @endpoint.name@.({})", message_id);)~~~");
     }
     }
     generator.appendln(R"~~~(
     generator.appendln(R"~~~(
             return {};
             return {};
@@ -655,7 +655,7 @@ public:
         if (stream.handle_any_error()) {)~~~");
         if (stream.handle_any_error()) {)~~~");
     if constexpr (GENERATE_DEBUG) {
     if constexpr (GENERATE_DEBUG) {
         generator.appendln(R"~~~(
         generator.appendln(R"~~~(
-                dbgln(\"Failed to read the message\");)~~~");
+            dbgln("Failed to read the message");)~~~");
     }
     }
     generator.appendln(R"~~~(
     generator.appendln(R"~~~(
             return {};
             return {};