diff options
Diffstat (limited to 'src/include/gm/call.h')
-rw-r--r-- | src/include/gm/call.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gm/call.h b/src/include/gm/call.h new file mode 100644 index 0000000..5c3849d --- /dev/null +++ b/src/include/gm/call.h @@ -0,0 +1,18 @@ +#ifndef DEF_CALL_H +#define DEF_CALL_H + +/* + * This file and all files in include/call/ define prototypes to helper functions for calling methods on objects. + */ + +#include <gc/obj.h> + +#define _CHP Object o, int block +#define _CHC if (block) request(o, &sr); else send_msg(o, &sr); + +int c_handleCheck(_CHP, int method); +int c_handleCheckA(_CHP, int* methods, int number); + +int c_nothing(_CHP); + +#endif |