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

Function CheckURL

engine/script/src/script.cpp:918–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916 }
917
918 bool CheckURL(lua_State* L, dmMessage::URL* out_url)
919 {
920 bool result = GetURL(L, out_url);
921 if (!result)
922 {
923 return luaL_error(L, "No URL could be found in the current script environment.");
924 }
925 return result;
926 }
927
928 bool GetUserData(lua_State* L, uintptr_t* out_user_data, uint32_t user_type_hash) {
929 DM_LUA_STACK_CHECK(L, 0);

Callers 4

GetURLFunction · 0.70
LuaToVarFunction · 0.50
TEST_FFunction · 0.50

Calls 2

luaL_errorFunction · 0.85
GetURLFunction · 0.70

Tested by 1

TEST_FFunction · 0.40