Lines Matching refs:tname
182 static int typeerror (lua_State *L, int arg, const char *tname) { in typeerror() argument
191 msg = lua_pushfstring(L, "%s expected, got %s", tname, typearg); in typeerror()
299 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
300 if (luaL_getmetatable(L, tname) != LUA_TNIL) /* name already in use? */ in luaL_newmetatable()
304 lua_pushstring(L, tname); in luaL_newmetatable()
307 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
312 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
313 luaL_getmetatable(L, tname); in luaL_setmetatable()
318 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
322 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
333 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
334 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
335 if (p == NULL) typeerror(L, ud, tname); in luaL_checkudata()