From c34b2c57219aa496a202c2be1e12332b4eeea440 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Mon, 14 Apr 2025 15:43:20 +0000
Subject: [PATCH] add function parameter handling and contextes
---
cli/main.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cli/main.cpp b/cli/main.cpp
index 67bfb52..a20c2bc 100644
--- a/cli/main.cpp
+++ b/cli/main.cpp
@@ -66,7 +66,7 @@
ScriptInterpreter interp;
interp.registerModule("print", std::make_shared<PrintFunction>());
interp.registerModule("sleep", std::make_shared<SleepFunction>());
- interp.executeScript(content, filename, "_default_", false);
+ interp.executeScript(content, filename, "DEFAULT", false);
} catch (const std::exception & e) {
std::cerr << "Parser error: " << e.what() << "\n";
return 1;
--
Gitblit v1.9.3