MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / OgMallocTypeString

Function OgMallocTypeString

Source/Memory/allocation.cpp:48–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46Allocations allocations[MAX_ALLOCATIONS] = {NULL, 0};
47
48const char* OgMallocTypeString(uint8_t type) {
49 switch (type) {
50 case OG_MALLOC_GEN:
51 return "Generic";
52 case OG_MALLOC_NEW:
53 return "new";
54 case OG_MALLOC_NEW_ARR:
55 return "new []";
56 case OG_MALLOC_RC:
57 return "Recast";
58 case OG_MALLOC_DT:
59 return "Detour";
60 default:
61 return "Unknown";
62 }
63}
64
65void* og_malloc(size_t size, uint8_t source_id) {
66 if (source_id >= OG_MALLOC_TYPE_COUNT) {

Callers 2

UpdateMethod · 0.85
DrawImGuiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected