mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
luaL_error use replaced with c++ exceptions
This commit is contained in:
parent
9522aedeec
commit
548c55fced
9 changed files with 80 additions and 73 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue