20,741
edits
m (→Pool storage) |
|||
| 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]] | ||