call
#define call(self, ...)
var call_with(var self, var args);
Call the object self
with arguments args
.
Usage
var increment(var args) {
struct Int* i = get(args, $I(0));
i->val++;
return NULL;
}
var x = $I(0);
show(x); /* 0 */
call($(Function, increment), x);
show(x); /* 1 */