refactor: LuaState replaced with lua_engine

This commit is contained in:
MihailRis
2024-06-11 13:18:30 +03:00
parent 0647bc6f90
commit 90bc86408b
22 changed files with 643 additions and 675 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ static int l_json_stringify(lua_State* L) {
if (auto mapptr = std::get_if<dynamic::Map_sptr>(&value)) {
bool nice = lua::toboolean(L, 2);
auto string = json::stringify(mapptr->get(), nice, " ");
return lua::pushstring(L, string.c_str());
return lua::pushstring(L, string);
} else {
throw std::runtime_error("table expected");
}