How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 44: Line 44:
</syntaxhighlight>
</syntaxhighlight>


= The GC interface =
TODO: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/data.h#line204
= naNew() =


As can be seen, the key allocator function is [https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/misc.c#line66 naNew()]. naNew() is really just a fancy malloc() replacement, i.e. it's just getting passed the size of the requested memory region.
As can be seen, the key allocator function is [https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/misc.c#line66 naNew()]. naNew() is really just a fancy malloc() replacement, i.e. it's just getting passed the size of the requested memory region.

Navigation menu