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

Method TestNumber

engine/script/src/test/test_script_ddf.cpp:444–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 return 0;
443 }
444 static int TestNumber(lua_State* L)
445 {
446 Test* test = static_cast<Test*>(lua_touserdata(L, 1));
447 lua_newtable(L);
448 lua_pushnumber(L, 1);
449 lua_setfield(L, -2, "uint64_value");
450 CheckDDF(L, test);
451 return 0;
452 }
453 static int TestHash(lua_State* L)
454 {
455 Test* test = static_cast<Test*>(lua_touserdata(L, 1));

Callers

nothing calls this directly

Calls 4

lua_touserdataFunction · 0.85
lua_pushnumberFunction · 0.85
lua_setfieldFunction · 0.85
CheckDDFFunction · 0.85

Tested by

no test coverage detected