Lines Matching refs:tname
164 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() argument
166 tname, luaL_typename(L, narg)); in typeerror()
231 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
232 luaL_getmetatable(L, tname); /* try to get metatable */ in luaL_newmetatable()
238 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
243 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
244 luaL_getmetatable(L, tname); in luaL_setmetatable()
249 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
253 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
264 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
265 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
266 if (p == NULL) typeerror(L, ud, tname); in luaL_checkudata()