MCPcopy Create free account
hub / github.com/BanjoRecomp/BanjoRecomp / recomputil_u32_hashset_insert

Function recomputil_u32_hashset_insert

src/game/recomp_data_api.cpp:431–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void recomputil_u32_hashset_insert(uint8_t* rdram, recomp_context* ctx) {
432 uint32_t setkey = _arg<0, uint32_t>(rdram, ctx);
433 uint32_t key = _arg<1, uint32_t>(rdram, ctx);
434
435 U32HashSet* set;
436 if (!u32_hashsets.get(setkey, &set)) {
437 HANDLE_INVALID_ERROR();
438 }
439
440 _return(ctx, set->insert(key));
441}
442
443void recomputil_u32_hashset_erase(uint8_t* rdram, recomp_context* ctx) {
444 uint32_t setkey = _arg<0, uint32_t>(rdram, ctx);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected