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

Function NumberErrorFunc

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

Source from the content-addressed store, hash-verified

541}
542
543static int NumberErrorFunc(lua_State* L) {
544 // Test with a number - this should use tostring() behavior
545 lua_getglobal(L, "error");
546 lua_pushnumber(L, 42.5);
547 lua_call(L, 1, 0);
548 return 0; // Never reached
549}
550
551TEST_F(ScriptTestLua, TestNumberError)
552{

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected