20,741
edits
m (add syntax highlighting tags (more to be added later)) |
|||
Line 266: | Line 266: | ||
Ghost utilities: | Ghost utilities: | ||
<syntaxhighlight lang="c"> | |||
typedef struct naGhostType { | typedef struct naGhostType { | ||
void(*destroy)(void*); | void(*destroy)(void*); | ||
Line 274: | Line 276: | ||
void* naGhost_ptr(naRef ghost); | void* naGhost_ptr(naRef ghost); | ||
int naIsGhost(naRef r); | int naIsGhost(naRef r); | ||
</syntaxhighlight> | |||
This needs to be specifically implemented for each new "ghost" type. | This needs to be specifically implemented for each new "ghost" type. |