Changes

Jump to: navigation, search

Howto:Extend Nasal

1 byte added, 12:41, 28 January 2010
m
Argument Processing
And then get the appropriate value out with things like naNumValue(), naStr_data(), etc...
So, if were we're now to change the interface of our earlier "cool" function in the example, to only return "cool" if we are passed at least one numerical parameter, and otherwise return "uncool", it could look like this:
static naRef f_cool (naContext c, naRef me, int argc, naRef* args)
2,561
edits

Navigation menu