How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 100: Line 100:


For each of the 7 Nasal data types, there is a separate storage pool available (0..6). Each storage pool is addressed by its enum index: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/data.h#line65
For each of the 7 Nasal data types, there is a separate storage pool available (0..6). Each storage pool is addressed by its enum index: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/data.h#line65
<syntaxhighlight lang="C">
enum { T_STR, T_VEC, T_HASH, T_CODE, T_FUNC, T_CCODE, T_GHOST, NUM_NASAL_TYPES }; // V. important that this come last!
</syntaxhighlight>


The 7 storage pools are declared in code.h, line 39: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/code.h#line39
 
The 7 storage pools are declared in code.h as part of the "Globals" structure, line 39: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/code.h#line39


<syntaxhighlight lang="C">
<syntaxhighlight lang="C">

Navigation menu