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

Function TestGetUserData

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

Source from the content-addressed store, hash-verified

229}
230
231static int TestGetUserData(lua_State* L) {
232 TestDummy* dummy = (TestDummy*)lua_touserdata(L, 1);
233 lua_pushlightuserdata(L, (void*)(uintptr_t)dummy->m_Dummy);
234 return 1;
235}
236
237static int TestResolvePath(lua_State* L) {
238 dmScript::PushHash(L, dmHashString64(luaL_checkstring(L, 2)));

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
lua_pushlightuserdataFunction · 0.85

Tested by

no test coverage detected