diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-08 12:41:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-08 12:41:44 -0300 |
commit | f93704728f4854ce113cee05c337fb2db0da15a3 (patch) | |
tree | 264f24b7a57240a5cdb15a61e7f67cf227dec29a | |
parent | c9e3d321828dd095d46e295873bc991f0c9ed3d7 (diff) | |
download | lua-f93704728f4854ce113cee05c337fb2db0da15a3.tar.gz lua-f93704728f4854ce113cee05c337fb2db0da15a3.tar.bz2 lua-f93704728f4854ce113cee05c337fb2db0da15a3.zip |
one cannot "create" a userdata.
-rw-r--r-- | iolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -295,7 +295,7 @@ static void getbyte (void) | |||
295 | } | 295 | } |
296 | } | 296 | } |
297 | 297 | ||
298 | static void createuserdata (void) | 298 | static 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 | ||