20,741
edits
| Line 170: | Line 170: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
As can be seen, "elemsz" just stores the size of each type-specific structure, so that it can be used for new allocations. | |||
The size of a memory pool is determined using poolsize(): https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line186 | The size of a memory pool is determined using poolsize(): https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line186 | ||