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

Method TestString

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

Source from the content-addressed store, hash-verified

433 }
434
435 static int TestString(lua_State* L)
436 {
437 Test* test = static_cast<Test*>(lua_touserdata(L, 1));
438 lua_newtable(L);
439 lua_pushstring(L, "test");
440 lua_setfield(L, -2, "uint64_value");
441 CheckDDF(L, test);
442 return 0;
443 }
444 static int TestNumber(lua_State* L)
445 {
446 Test* test = static_cast<Test*>(lua_touserdata(L, 1));

Callers

nothing calls this directly

Calls 4

lua_touserdataFunction · 0.85
lua_pushstringFunction · 0.85
lua_setfieldFunction · 0.85
CheckDDFFunction · 0.85

Tested by

no test coverage detected