aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-08 12:41:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-08 12:41:44 -0300
commitf93704728f4854ce113cee05c337fb2db0da15a3 (patch)
tree264f24b7a57240a5cdb15a61e7f67cf227dec29a
parentc9e3d321828dd095d46e295873bc991f0c9ed3d7 (diff)
downloadlua-f93704728f4854ce113cee05c337fb2db0da15a3.tar.gz
lua-f93704728f4854ce113cee05c337fb2db0da15a3.tar.bz2
lua-f93704728f4854ce113cee05c337fb2db0da15a3.zip
one cannot "create" a userdata.
-rw-r--r--iolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iolib.c b/iolib.c
index a3a6da22..a3719c65 100644
--- a/iolib.c
+++ b/iolib.c
@@ -295,7 +295,7 @@ static void getbyte (void)
295 } 295 }
296} 296}
297 297
298static void createuserdata (void) 298static void newuserdata (void)
299{ 299{
300 lua_Object t = lua_getparam(1); 300 lua_Object t = lua_getparam(1);
301 int tag = luaL_opt_number(2, 0); 301 int tag = luaL_opt_number(2, 0);
@@ -335,7 +335,7 @@ static struct luaL_reg iolib[] = {
335{"exit", io_exit}, 335{"exit", io_exit},
336{"debug", io_debug}, 336{"debug", io_debug},
337{"getbyte", getbyte}, 337{"getbyte", getbyte},
338{"createud", createuserdata}, 338{"userdata", newuserdata},
339{"print_stack", errorfb} 339{"print_stack", errorfb}
340}; 340};
341 341