mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor: LuaState replaced with lua_engine
This commit is contained in:
parent
0647bc6f90
commit
90bc86408b
22 changed files with 643 additions and 675 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue