new functions to manipulate C global variables

This commit is contained in:
Roberto Ierusalimschy
1999-01-15 11:11:22 -02:00
parent e87fddf1ad
commit 54840fb256
3 changed files with 51 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 1.5 1997/12/17 20:48:58 roberto Exp roberto $
** $Id: lstate.c,v 1.6 1998/06/02 20:37:04 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -78,9 +78,3 @@ void lua_close (void)
}
lua_State *lua_setstate (lua_State *st) {
lua_State *old = lua_state;
lua_state = st;
return old;
}