Skip to content

Commit eec0a6a

Browse files
committed
Removed unfinished TypeMismatchError
1 parent 2ad6609 commit eec0a6a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

include/LuaState.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ namespace lua {
7272
}
7373

7474
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)
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)
83+
if (lua_pcall(_luaState, 0, LUA_MULTRET, 0))
8384
throw RuntimeError(_luaState);
8485

8586
int pushedValues = stack::top(_luaState) - index;

0 commit comments

Comments
 (0)