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

Function StackContains

engine/script/src/script_table.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 static bool StackContains(dmArray<const void*>& table_stack, const void* p)
331 {
332 uint32_t size = table_stack.Size();
333 for (uint32_t i = 0; i < size; ++i)
334 {
335 if (table_stack[i] == p)
336 return true;
337 }
338 return false;
339 }
340
341 uint32_t DoCheckTableSize(lua_State* L, int index, int parent_offset, dmArray<const void*>& table_stack)
342 {

Callers 2

DoCheckTableSizeFunction · 0.85
DoCheckTableFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected