mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix it temporary and think deeper after 0.25 release
This commit is contained in:
parent
05003a4082
commit
c9040df090
1 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ int lua::call_nothrow(State* L, int argc, int nresults) {
|
||||||
int handler_pos = gettop(L) - argc;
|
int handler_pos = gettop(L) - argc;
|
||||||
pushcfunction(L, l_error_handler);
|
pushcfunction(L, l_error_handler);
|
||||||
insert(L, handler_pos);
|
insert(L, handler_pos);
|
||||||
if (lua_pcall(L, argc, LUA_MULTRET, handler_pos)) {
|
if (lua_pcall(L, argc, -1, handler_pos)) {
|
||||||
auto errorstr = tostring(L, -1);
|
auto errorstr = tostring(L, -1);
|
||||||
if (errorstr) {
|
if (errorstr) {
|
||||||
log_error(errorstr);
|
log_error(errorstr);
|
||||||
|
|
@ -187,7 +187,7 @@ int lua::call_nothrow(State* L, int argc, int nresults) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
remove(L, handler_pos);
|
remove(L, handler_pos);
|
||||||
return nresults == -1 ? 1 : nresults;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lua::dump_stack(State* L) {
|
void lua::dump_stack(State* L) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue