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

Function AssertNilNilFunc

engine/script/src/test/test_script_lua.cpp:579–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static int AssertNilNilFunc(lua_State* L) {
580 lua_getglobal(L, "assert");
581 lua_pushnil(L); // condition = nil (falsy)
582 lua_pushnil(L); // message = nil
583 lua_call(L, 2, 0);
584 return 0; // Never reached
585}
586
587static int DeepLuaErrorFunc(lua_State* L) {
588 // Create a Lua call stack to show traceback with content

Callers

nothing calls this directly

Calls 2

lua_pushnilFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected