Jump to: navigation, search

Howto:Extend Nasal

79 bytes added, 12:36, 28 January 2010
Extension Function Signature
So, this is basically the boilerplate that you'll need to use in order to expose a new function (i.e. you can just copy & paste this into the NasalSys.cxx file).
If you don't have anything else to return, you can just return naNil(), so that the a function named "f_cool" looks like this:
static naRef f_cool (naContext c, naRef me, int argc, naRef* args)
SG_LOG(SG_GENERAL, SG_ALERT, "Nasal:cool() got executed!");
return naNil();

Navigation menu