From 237969724f54eeefee057ae382237c8db54af44e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 5 Apr 2002 15:54:31 -0300 Subject: support for `light' userdata + simpler support for `boxed' udata --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 58c4d28a..d9d8a4f0 100644 --- a/lua.c +++ b/lua.c @@ -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"); } -- cgit v1.2.3-55-g6feb