luaL_error use replaced with c++ exceptions

This commit is contained in:
MihailRis
2024-05-12 11:00:11 +03:00
parent 9522aedeec
commit 548c55fced
9 changed files with 80 additions and 73 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ static int l_json_stringify(lua_State* L) {
lua_pushstring(L, string.c_str());
return 1;
} else {
luaL_error(L, "table expected");
return 0;
throw std::runtime_error("table expected");
}
}