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

Function FreeLuaRef

src/lua/LuaGLPointers.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155//============================================================================//
156
157static bool FreeLuaRef(lua_State* L, GLenum type) {
158 std::map<GLenum, int>::iterator it = luaRefs.find(type);
159 if (it != luaRefs.end()) {
160 luaL_unref(L, LUA_REGISTRYINDEX, it->second);
161 luaRefs.erase(it);
162 return true;
163 }
164 return false;
165}
166
167
168static bool CreateLuaRef(lua_State* L, int index, GLenum type) {

Callers 8

CreateLuaRefFunction · 0.85
VertexPointerMethod · 0.85
NormalPointerMethod · 0.85
HandleTexCoordPointerFunction · 0.85
ColorPointerMethod · 0.85
EdgeFlagPointerMethod · 0.85
VertexAttribPointerMethod · 0.85
VertexAttribIPointerMethod · 0.85

Calls 3

luaL_unrefFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected