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

Function URL_eq

engine/script/src/script_msg.cpp:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 static int URL_eq(lua_State *L)
247 {
248 dmMessage::URL* url1 = (dmMessage::URL*)ToUserType(L, 1, SCRIPT_URL_TYPE_HASH);
249 dmMessage::URL* url2 = (dmMessage::URL*)ToUserType(L, 2, SCRIPT_URL_TYPE_HASH);
250 lua_pushboolean(L, url1 && url2 && url1->m_Socket == url2->m_Socket && url1->m_Path == url2->m_Path && url1->m_Fragment == url2->m_Fragment);
251 return 1;
252 }
253
254 static const luaL_reg URL_methods[] =
255 {

Callers

nothing calls this directly

Calls 2

ToUserTypeFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected