lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The reference manual says:

    void *luaL_checkudata (lua_State *L, int narg, const char *tname);

    Checks whether the function argument narg is a userdata of the
type tname ...

Is there any way to find out from Lua what the registry type of a
userdata is, short
of giving it a `type` method?