2 //metadoc Context copyright Steve Dekorte 2002
3 //metadoc Context license BSD revised
5 #ifndef IOCONTEXT_DEFINED
6 #define IOCONTEXT_DEFINED 1
8 #include "IoObject_struct.h"
16 void *self
; // activationContext
17 void *locals
; // currentContext
22 #define IOCONTEXT(self, locals, message) ((IoContext *){self, locals, message})
26 #define SELF (context->self)
27 #define LOCALS (context->locals)
28 #define MESSAGE (context->message)
32 IoObject *IoDuration_days(IoDuration *self, IoObject *locals, IoMessage *m);
36 IoObject *IoDuration_days(IoContext *context);