support for light' userdata + simpler support for boxed' udata

This commit is contained in:
Roberto Ierusalimschy
2002-04-05 15:54:31 -03:00
parent f438d00ef3
commit 237969724f
12 changed files with 71 additions and 64 deletions

4
lua.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.c,v 1.79 2002/03/27 18:00:13 roberto Exp roberto $
** $Id: lua.c,v 1.80 2002/04/01 14:42:33 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -334,7 +334,7 @@ static int handle_argv (char *argv[], int *toclose) {
static void register_getargs (char *argv[]) {
lua_newuserdatabox(L, argv);
lua_pushudataval(L, argv);
lua_pushcclosure(L, l_getargs, 1);
lua_setglobal(L, "getargs");
}