Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
m
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.

Navigation menu