NewtonSetMemorySystem

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonSetMemorySystem

void NewtonSetMemorySystem (NewtonAllocMemory malloc, NewtonFreeMemory free)

Usage

Tells newton library, to use a custom memory manager.

Parameters

  • NewtonAllocMemory malloc - pointer to memory allocation function
  • NewtonFreeMemory free - pointer to memory deallocation function

Return

  • (Procedure)

Remarks

If you just pass NULL, the standard malloc and free functions will be used, it is not neccesary to call this function at all.

See also