MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / TestLuaTexture

Method TestLuaTexture

src/lua/LuaTextures.cpp:743–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741//============================================================================//
742
743const LuaTexture* LuaTextureMgr::TestLuaTexture(lua_State* L, int index) {
744 if (lua_getuserdataextra(L, index) != metaName) {
745 return NULL;
746 }
747 return (LuaTexture*)lua_touserdata(L, index);
748}
749
750
751const LuaTexture* LuaTextureMgr::CheckLuaTexture(lua_State* L, int index) {

Callers

nothing calls this directly

Calls 2

lua_getuserdataextraFunction · 0.85
lua_touserdataFunction · 0.50

Tested by

no test coverage detected