mirror of https://github.com/rusefi/lua.git
one cannot "create" a userdata.
This commit is contained in:
parent
c9e3d32182
commit
f93704728f
4
iolib.c
4
iolib.c
|
@ -295,7 +295,7 @@ static void getbyte (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void createuserdata (void)
|
static void newuserdata (void)
|
||||||
{
|
{
|
||||||
lua_Object t = lua_getparam(1);
|
lua_Object t = lua_getparam(1);
|
||||||
int tag = luaL_opt_number(2, 0);
|
int tag = luaL_opt_number(2, 0);
|
||||||
|
@ -335,7 +335,7 @@ static struct luaL_reg iolib[] = {
|
||||||
{"exit", io_exit},
|
{"exit", io_exit},
|
||||||
{"debug", io_debug},
|
{"debug", io_debug},
|
||||||
{"getbyte", getbyte},
|
{"getbyte", getbyte},
|
||||||
{"createud", createuserdata},
|
{"userdata", newuserdata},
|
||||||
{"print_stack", errorfb}
|
{"print_stack", errorfb}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue