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

Function ResolvePathCallback

engine/script/src/test/test_script_msg.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#define DEFAULT_URL "__default_url"
28
29static int ResolvePathCallback(lua_State* L)
30{
31 uint32_t* user_data = (uint32_t*)lua_touserdata(L, 1);
32 assert(*user_data == 1);
33 const char* path = luaL_checkstring(L, 2);
34 dmScript::PushHash(L, dmHashString64(path));
35 return 1;
36}
37
38static int GetURLCallback(lua_State* L)
39{

Callers

nothing calls this directly

Calls 3

lua_touserdataFunction · 0.85
PushHashFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected