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

Method TestLuaGLQuery

src/lua/LuaGLQueries.cpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114//============================================================================//
115
116const LuaGLQuery* LuaGLQueryMgr::TestLuaGLQuery(lua_State* L, int index) {
117 if (lua_getuserdataextra(L, index) != metaName) {
118 return NULL;
119 }
120 return (LuaGLQuery*)lua_touserdata(L, index);
121}
122
123
124const LuaGLQuery* LuaGLQueryMgr::CheckLuaGLQuery(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