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

Method Unref

src/lua/LuaSceneNode.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87void LuaRenderNode::Unref() {
88 if (funcRef != LUA_NOREF) {
89 luaL_unref(L, LUA_REGISTRYINDEX, funcRef);
90 funcRef = LUA_NOREF;
91 }
92 if (dataRef != LUA_NOREF) {
93 luaL_unref(L, LUA_REGISTRYINDEX, dataRef);
94 dataRef = LUA_NOREF;
95 }
96 L = NULL;
97}
98
99
100void LuaRenderNode::render() {

Callers 2

UnrefMethod · 0.45
DeleteSceneNodeMethod · 0.45

Calls 1

luaL_unrefFunction · 0.50

Tested by

no test coverage detected