Fixed windows build not compiling

This commit is contained in:
Anonymous275
2021-02-21 22:00:50 +02:00
committed by Anonymous275
parent f13523fbe5
commit 218504e674
9 changed files with 32 additions and 9 deletions

View File

@@ -178,11 +178,11 @@ void SafeExecution(TLuaEngine& Engine, TLuaFile* lua, const std::string& FuncNam
if (lua_isfunction(luaState, -1)) {
char* Origin = ThreadOrigin(lua);
#ifdef WIN32
__try {
//__try {
int R = lua_pcall(luaState, 0, 0, 0);
CheckLua(luaState, R);
} __except (Handle(GetExceptionInformation(), Origin)) {
}
/*} __except (Handle(GetExceptionInformation(), Origin)) {
}*/
#else // unix
int R = lua_pcall(luaState, 0, 0, 0);
CheckLua(luaState, R);