Updating built in Io code to use += instead of x = x + y
[io/quag.git] / libs / iovm / source / IoMessage_inline.h
blobecfea2ec4430488b740cb8350c49d9b90d34555f
1 /*
2 docCopyright("Steve Dekorte", 2002)
3 docLicense("BSD revised")
4 */
6 #ifdef IOMESSAGE_C
7 #define IO_IN_C_FILE
8 #endif
9 #include "Common_inline.h"
10 #ifdef IO_DECLARE_INLINES
13 #include "IoObject.h"
15 #define IOMESSAGEDATA(self) ((IoMessageData *)IoObject_dataPointer(self))
17 IOINLINE IoSymbol *IoMessage_name(IoMessage *self)
19 return IOMESSAGEDATA(self)->name;
22 IOINLINE void IoMessage_addArg_(IoMessage *self, IoMessage *m)
24 List_append_(IOMESSAGEDATA(self)->args, IOREF(m));
27 IOINLINE IoMessage *IoMessage_rawArgAt_(IoMessage *self, int n)
29 return List_at_(IOMESSAGEDATA(self)->args, n);
32 IOINLINE IoSymbol *IoMessage_rawLabel(IoMessage *self)
34 return IOMESSAGEDATA(self)->label;
37 IOINLINE List *IoMessage_rawArgs(IoMessage *self)
39 return IOMESSAGEDATA(self)->args;
42 IOINLINE IoObject *IoMessage_name(self)
44 return (((IoMessageData *)IoObject_dataPointer(self))->name);
49 #undef IO_IN_C_FILE
50 #endif