We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad6609 commit eec0a6aCopy full SHA for eec0a6a
include/LuaState.h
@@ -72,14 +72,15 @@ namespace lua {
72
}
73
74
lua::Value executeLoadedFunction(int index) const {
75
- bool executed;
76
- try {
77
- executed = lua_pcall(_luaState, 0, LUA_MULTRET, 0) == 0;
78
- } catch (lua::TypeMismatchError ex) {
79
- throw ex;
80
- }
81
-
82
- if (!executed)
+// bool executed;
+// try {
+// executed = lua_pcall(_luaState, 0, LUA_MULTRET, 0) == 0;
+// } catch (lua::TypeMismatchError ex) {
+// throw ex;
+// }
+//
+// if (!executed)
83
+ if (lua_pcall(_luaState, 0, LUA_MULTRET, 0))
84
throw RuntimeError(_luaState);
85
86
int pushedValues = stack::top(_luaState) - index;
0 commit comments