From 971854bfefad4c644ac3d5f5d6003f24d551bf1d Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 10 Mar 2025 22:04:24 +0530 Subject: Add completer + simplify command parsing + class generator --- src/LuaRuntime.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/LuaRuntime.cpp') diff --git a/src/LuaRuntime.cpp b/src/LuaRuntime.cpp index 37845d3..6867b61 100644 --- a/src/LuaRuntime.cpp +++ b/src/LuaRuntime.cpp @@ -15,7 +15,9 @@ LuaRuntime::LuaRuntime() { lua_setglobal(state, "web"); } -void LuaRuntime::evaluate(const char *code) { luaL_dostring(state, code); } +void LuaRuntime::evaluate(QString code) { + luaL_dostring(state, code.toStdString().c_str()); +} int LuaRuntime::lua_onUrlOpen(lua_State *state) { const char *url = luaL_optstring(state, 1, ""); -- cgit v1.3.1