aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-01-15 11:11:22 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-01-15 11:11:22 -0200
commit54840fb25696ab30e11d2d80f3c18af6d1f01481 (patch)
treeb2d0fd6ad4dd450ba7f845e6c1ea3d73efcbd7f6 /lstate.c
parente87fddf1adab8ca60ec988c9d71d29a44d7129a3 (diff)
downloadlua-54840fb25696ab30e11d2d80f3c18af6d1f01481.tar.gz
lua-54840fb25696ab30e11d2d80f3c18af6d1f01481.tar.bz2
lua-54840fb25696ab30e11d2d80f3c18af6d1f01481.zip
new functions to manipulate C global variables
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lstate.c b/lstate.c
index 434bd0bd..8547c176 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.5 1997/12/17 20:48:58 roberto Exp roberto $ 2** $Id: lstate.c,v 1.6 1998/06/02 20:37:04 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -78,9 +78,3 @@ void lua_close (void)
78} 78}
79 79
80 80
81lua_State *lua_setstate (lua_State *st) {
82 lua_State *old = lua_state;
83 lua_state = st;
84 return old;
85}
86