20,741
edits
mNo edit summary |
No edit summary |
||
| Line 67: | Line 67: | ||
{ | { | ||
// This only needs to be called once for each ghost | // This only needs to be called once for each ghost | ||
NasalTest::init("Test") // this is the ghost's symbol used in error messages/diagnostics | NasalTest::init("Test") // this is the ghost's symbol used in error messages/diagnostics (it is NOT the namespace/symbol used by nasal code!) | ||
.method("hello", &Test::hello); // add a method to the ghost and map it to the method in the struct/class | .method("hello", &Test::hello); // add a method to the ghost and map it to the method in the struct/class | ||