diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.26 2005/07/11 14:00:59 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.27 2005/07/12 14:32:08 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 | */ |
@@ -730,7 +730,7 @@ static int loadlib (lua_State *L) { | |||
730 | lua_State *L1 = cast(lua_State *, | 730 | lua_State *L1 = cast(lua_State *, |
731 | cast(unsigned long, luaL_checknumber(L, 1))); | 731 | cast(unsigned long, luaL_checknumber(L, 1))); |
732 | lua_pushvalue(L1, LUA_GLOBALSINDEX); | 732 | lua_pushvalue(L1, LUA_GLOBALSINDEX); |
733 | luaL_openlib(L1, NULL, libs, 0); | 733 | luaL_register(L1, NULL, libs); |
734 | return 0; | 734 | return 0; |
735 | } | 735 | } |
736 | 736 | ||
@@ -1161,7 +1161,7 @@ int luaB_opentests (lua_State *L) { | |||
1161 | lua_assert(ud == cast(void *, &memcontrol)); | 1161 | lua_assert(ud == cast(void *, &memcontrol)); |
1162 | lua_atpanic(L, l_panic); | 1162 | lua_atpanic(L, l_panic); |
1163 | lua_state = L; /* keep first state to be opened */ | 1163 | lua_state = L; /* keep first state to be opened */ |
1164 | luaL_openlib(L, "T", tests_funcs, 0); | 1164 | luaL_register(L, "T", tests_funcs); |
1165 | atexit(fim); | 1165 | atexit(fim); |
1166 | return 0; | 1166 | return 0; |
1167 | } | 1167 | } |