Lines Matching refs:tname
193 int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror() argument
202 msg = lua_pushfstring(L, "%s expected, got %s", tname, typearg); in luaL_typeerror()
311 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
312 if (luaL_getmetatable(L, tname) != LUA_TNIL) /* name already in use? */ in luaL_newmetatable()
316 lua_pushstring(L, tname); in luaL_newmetatable()
319 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
324 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
325 luaL_getmetatable(L, tname); in luaL_setmetatable()
330 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
334 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
345 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
346 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
347 luaL_argexpected(L, p != NULL, ud, tname); in luaL_checkudata()