fix it temporary and think deeper after 0.25 release
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user