Merge pull request #804 from DiUS/panic

Do not allow execution to continue after a PANIC
This commit is contained in:
Terry Ellison 2015-12-12 15:36:00 +00:00
commit 0386ae6559
1 changed files with 1 additions and 0 deletions

View File

@ -816,6 +816,7 @@ static int panic (lua_State *L) {
luai_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n",
lua_tostring(L, -1));
#endif
while (1) {}
return 0;
}