Lines Matching refs:tname
166 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() argument
168 tname, luaL_typename(L, narg)); in typeerror()
233 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
234 luaL_getmetatable(L, tname); /* try to get metatable */ in luaL_newmetatable()
240 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
245 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
246 luaL_getmetatable(L, tname); in luaL_setmetatable()
251 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
255 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
266 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
267 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
268 if (p == NULL) typeerror(L, ud, tname); in luaL_checkudata()