MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / SetMemoryFunctions

Method SetMemoryFunctions

external/as_add_on/scriptarray/scriptarray.cpp:24–28  ·  view source on GitHub ↗

Allows the application to set which memory routines should be used by the array object

Source from the content-addressed store, hash-verified

22
23// Allows the application to set which memory routines should be used by the array object
24void CScriptArray::SetMemoryFunctions(asALLOCFUNC_t allocFunc, asFREEFUNC_t freeFunc)
25{
26 userAlloc = allocFunc;
27 userFree = freeFunc;
28}
29
30static void RegisterScriptArray_Native(asIScriptEngine *engine);
31static void RegisterScriptArray_Generic(asIScriptEngine *engine);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected