MCPcopy Create free account
hub / github.com/anjo76/angelscript / asResetGlobalMemoryFunctions

Function asResetGlobalMemoryFunctions

sdk/angelscript/source/as_memory.cpp:157–168  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

155
156// interface
157int asResetGlobalMemoryFunctions()
158{
159 // Clean-up thread local memory before changing the allocation routines to avoid
160 // potential problem with trying to free memory using a different allocation
161 // routine than used when allocating it.
162 asThreadCleanup();
163
164 userAlloc = malloc;
165 userFree = free;
166
167 return 0;
168}
169
170// interface
171void *asAllocMem(size_t size)

Callers 2

test_compiler.cppFile · 0.85
RemoveMemoryManagerFunction · 0.85

Calls 1

asThreadCleanupFunction · 0.85

Tested by 1

RemoveMemoryManagerFunction · 0.68