MCPcopy Create free account
hub / github.com/DavidColson/Polybox / LuaAllocator

Function LuaAllocator

source/asset_importer.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// ***********************************************************************
4
5static void* LuaAllocator(void* ud, void* ptr, u64 osize, u64 nsize) {
6 if (nsize == 0) {
7 RawFree(ptr);
8 return nullptr;
9 } else {
10 return RawRealloc(ptr, nsize, osize, true);
11 }
12}
13
14// ***********************************************************************
15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected