MCPcopy Create free account
hub / github.com/defold/defold / IsNodeValid

Function IsNodeValid

engine/gui/src/gui.cpp:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 bool IsNodeValid(HScene scene, HNode node)
193 {
194 uint16_t version = (uint16_t) (node >> 16);
195 uint16_t index = node & 0xffff;
196 if (index >= scene->m_Nodes.Size())
197 return false;
198 InternalNode* n = &scene->m_Nodes[index];
199 return n->m_Version == version && n->m_Index == index;
200 }
201
202 InternalNode* GetNode(HScene scene, HNode node)
203 {

Callers 1

PushPfxCallbackArgumentsFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected