MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / sk_malloc

Function sk_malloc

StereoKitC/sk_memory.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11///////////////////////////////////////////
12
13void *sk_malloc(size_t bytes) {
14 void *result = malloc(bytes);
15 if (result == nullptr && bytes > 0) {
16 fprintf(stderr, "Memory alloc failed!");
17 abort();
18 }
19 return result;
20}
21
22///////////////////////////////////////////
23

Callers 15

file_picker_cache_readFunction · 0.85
render_check_screenshotsFunction · 0.85
tex_load_equirect_uploadFunction · 0.85
tex_create_mem_typeFunction · 0.85
tex_set_memFunction · 0.85
tex_get_cubemap_lightingFunction · 0.85
tex_gen_colorFunction · 0.85
anim_data_copyFunction · 0.85
gltf_parseanimFunction · 0.85
modelfmt_gltfFunction · 0.85
font_source_add_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected