19,491
edits
Changes
m
→Passing Pointers to Nasal scripts
Ghost utilities:
<syntaxhighlight lang="c">
typedef struct naGhostType {
void(*destroy)(void*);
void* naGhost_ptr(naRef ghost);
int naIsGhost(naRef r);
</syntaxhighlight>
This needs to be specifically implemented for each new "ghost" type.