diff options
-rw-r--r-- | ltests.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.149 2002/12/19 11:11:55 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.150 2002/12/20 10:26:33 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -805,7 +805,15 @@ static void fim (void) { | |||
805 | } | 805 | } |
806 | 806 | ||
807 | 807 | ||
808 | static int l_panic (lua_State *L) { | ||
809 | UNUSED(L); | ||
810 | fprintf(stderr, "unable to recover; exiting\n"); | ||
811 | return 0; | ||
812 | } | ||
813 | |||
814 | |||
808 | int luaB_opentests (lua_State *L) { | 815 | int luaB_opentests (lua_State *L) { |
816 | lua_atpanic(L, l_panic); | ||
809 | lua_userstateopen(L); /* init lock */ | 817 | lua_userstateopen(L); /* init lock */ |
810 | lua_state = L; /* keep first state to be opened */ | 818 | lua_state = L; /* keep first state to be opened */ |
811 | luaL_openlib(L, "T", tests_funcs, 0); | 819 | luaL_openlib(L, "T", tests_funcs, 0); |