16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00

on win32 show errors in messageboxes

This commit is contained in:
milek7
2017-12-27 20:17:50 +01:00
parent ccaf05e448
commit b158a1e510
2 changed files with 11 additions and 1 deletions

View File

@@ -43,7 +43,11 @@ void lua::interpret(std::string file)
int lua::atpanic(lua_State *s)
{
ErrorLog(std::string(lua_tostring(s, -1)));
std::string err(lua_tostring(s, -1));
ErrorLog(err);
#ifdef _WIN32
MessageBox(NULL, err.c_str(), "MaSzyna", MB_OK);
#endif
return 0;
}