mirror of https://github.com/rusefi/lua.git
removed static variable lua_state (not used)
This commit is contained in:
parent
5d09be4832
commit
59e2973335
5
ltests.c
5
ltests.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ltests.c,v 2.49 2008/06/12 14:20:49 roberto Exp roberto $
|
||||
** $Id: ltests.c,v 2.50 2008/06/13 14:15:59 roberto Exp roberto $
|
||||
** Internal Module for Debugging of the Lua Implementation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -40,8 +40,6 @@
|
|||
int l_Trick = 0;
|
||||
|
||||
|
||||
static lua_State *lua_state = NULL;
|
||||
|
||||
int islocked = 0;
|
||||
|
||||
|
||||
|
@ -1134,7 +1132,6 @@ int luaB_opentests (lua_State *L) {
|
|||
lua_assert(lua_getallocf(L, &ud) == debug_realloc);
|
||||
lua_assert(ud == cast(void *, &l_memcontrol));
|
||||
lua_setallocf(L, lua_getallocf(L, NULL), ud);
|
||||
lua_state = L; /* keep first state to be opened */
|
||||
luaL_register(L, "T", tests_funcs);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue