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