How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 517: Line 517:
= Tagged structures =
= Tagged structures =
https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/data.h#line84
https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/data.h#line84
= Core allocations =
All core memory allocation takes place via wrappers in [https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/misc.c#line8 misc.c]:
<syntaxhighlight lang="C">
void naFree(void* m) { free(m); }
void* naAlloc(int n) { return malloc(n); }
void* naRealloc(void* b, int n) { return realloc(b, n); }
void naBZero(void* m, int n) { memset(m, 0, n); }
</syntaxhighlight>




[[Category:Core developer documentation]]  
[[Category:Core developer documentation]]  
[[Category:Nasal]]
[[Category:Nasal]]

Navigation menu