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

Function LuaCheckTable

engine/script/src/test/test_script_table.cpp:233–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233static int LuaCheckTable(lua_State* L) {
234 int index = 1;
235 char* buf = (char*) lua_topointer(L, 2);
236 int buffer_size = (int) lua_tonumber(L, 3);
237 dmScript::CheckTable(L, buf, buffer_size, index);
238 return 0;
239}
240
241#define abs_index(L, i) ((i) > 0 || (i) <= LUA_REGISTRYINDEX ? (i) : \
242 lua_gettop(L) + (i) + 1)

Callers

nothing calls this directly

Calls 3

lua_topointerFunction · 0.85
lua_tonumberFunction · 0.85
CheckTableFunction · 0.85

Tested by

no test coverage detected