diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
commit | 237969724f54eeefee057ae382237c8db54af44e (patch) | |
tree | fc4abd54f7cac0749023f1c021e7d86e3ee4f273 /lua.c | |
parent | f438d00ef31e3aea54023602f529b68834ffb80a (diff) | |
download | lua-237969724f54eeefee057ae382237c8db54af44e.tar.gz lua-237969724f54eeefee057ae382237c8db54af44e.tar.bz2 lua-237969724f54eeefee057ae382237c8db54af44e.zip |
support for `light' userdata + simpler support for `boxed' udata
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.79 2002/03/27 18:00:13 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.80 2002/04/01 14:42:33 roberto Exp roberto $ |
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 | */ |
@@ -334,7 +334,7 @@ static int handle_argv (char *argv[], int *toclose) { | |||
334 | 334 | ||
335 | 335 | ||
336 | static void register_getargs (char *argv[]) { | 336 | static void register_getargs (char *argv[]) { |
337 | lua_newuserdatabox(L, argv); | 337 | lua_pushudataval(L, argv); |
338 | lua_pushcclosure(L, l_getargs, 1); | 338 | lua_pushcclosure(L, l_getargs, 1); |
339 | lua_setglobal(L, "getargs"); | 339 | lua_setglobal(L, "getargs"); |
340 | } | 340 | } |