diff options
| -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 | ||
