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

Function IsValidNode

engine/gui/src/gui_script.cpp:325–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 static bool IsValidNode(HScene scene, HNode node)
326 {
327 uint16_t version = (uint16_t) (node >> 16);
328 uint16_t index = node & 0xffff;
329 if (index < scene->m_Nodes.Size())
330 {
331 InternalNode* n = &scene->m_Nodes[index];
332 return n->m_Version == version && n->m_Index == index && !n->m_Node.m_HasHeadlessPfx;
333 }
334 else
335 {
336 return false;
337 }
338 }
339
340 static InternalNode* LuaCheckNodeInternal(lua_State* L, int index, HNode* hnode)
341 {

Callers 2

LuaCheckNodeInternalFunction · 0.85
NodeProxy_tostringFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected