diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-17 19:12:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-17 19:12:57 -0200 |
commit | 1e81da51bab87148981486a84b846399050f4ef2 (patch) | |
tree | d2c94326ca096e032d1ae3fa75a5d0605f494cc6 /lua.c | |
parent | 7cd37142f404462634a5049a840f572e85c5762b (diff) | |
download | lua-1e81da51bab87148981486a84b846399050f4ef2.tar.gz lua-1e81da51bab87148981486a84b846399050f4ef2.tar.bz2 lua-1e81da51bab87148981486a84b846399050f4ef2.zip |
new API for registry and C upvalues + new implementation for references
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.69 2001/08/30 20:54:02 roberto Exp $ | 2 | ** $Id: lua.c,v 1.70 2001/09/25 17:06:34 roberto Exp $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -141,7 +141,7 @@ static void getargs (l_char *argv[]) { | |||
141 | 141 | ||
142 | 142 | ||
143 | static int l_getargs (lua_State *l) { | 143 | static int l_getargs (lua_State *l) { |
144 | l_char **argv = (l_char **)lua_touserdata(l, -1); | 144 | l_char **argv = (l_char **)lua_touserdata(l, lua_upvalueindex(1)); |
145 | getargs(argv); | 145 | getargs(argv); |
146 | return 1; | 146 | return 1; |
147 | } | 147 | } |