From 4abeb5f8a6ad77b32496f3e8b20e1fd1b6f428fb Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 07:54:40 +0000
Subject: [PATCH] function checking

---
 src/Interpreter/Operation.hpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Interpreter/Operation.hpp b/src/Interpreter/Operation.hpp
index 8804075..7b0f88d 100644
--- a/src/Interpreter/Operation.hpp
+++ b/src/Interpreter/Operation.hpp
@@ -6,7 +6,7 @@
 #include <string>
 #include <unordered_map>
 
-#include "Interpreter/StatementNode.hpp"
+#include "StatementNode.hpp"
 
 namespace Operations {
 enum class Type : std::uint8_t {
@@ -62,8 +62,9 @@
     }
 
     std::string toString() const {
-        return "Target: " + targetName + " Type: " + this->typeToString() + " Statement: " + statement->toString();
-     }
+        return "Target: " + targetName + " Type: " + this->typeToString() +
+               " Statement: " + ((statement == nullptr) ? "no statement" : statement->toString());
+    }
 };
 };  // namespace Operations
 #endif

--
Gitblit v1.9.3