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

Method TestHash

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

Source from the content-addressed store, hash-verified

451 return 0;
452 }
453 static int TestHash(lua_State* L)
454 {
455 Test* test = static_cast<Test*>(lua_touserdata(L, 1));
456 lua_newtable(L);
457 dmScript::PushHash(L, (dmhash_t)1);
458 lua_setfield(L, -2, "uint64_value");
459 CheckDDF(L, test);
460 return 0;
461 }
462 };
463
464 Test test;

Callers

nothing calls this directly

Calls 4

lua_touserdataFunction · 0.85
PushHashFunction · 0.85
lua_setfieldFunction · 0.85
CheckDDFFunction · 0.85

Tested by

no test coverage detected