Mercurial > repos > rhope
diff runtime/func.h @ 63:04baa003de5a
Merged latest changes with better C branch
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 05 May 2010 22:12:23 -0400 |
parents | fa24ef3b026f 70af7fa155d0 |
children | 1db811fa4744 |
line wrap: on
line diff
--- a/runtime/func.h Sat Oct 10 16:43:37 2009 -0400 +++ b/runtime/func.h Wed May 05 22:12:23 2010 -0400 @@ -1,6 +1,9 @@ #ifndef _FUNC_H_ #define _FUNC_H_ +typedef struct object object; +typedef struct calldata calldata; + typedef enum { NORMAL_RETURN=0, EXCEPTION_RETURN, @@ -10,10 +13,10 @@ } returntype; -typedef returntype (*rhope_func)(struct calldata *); -typedef void (*special_func) (struct object *); +typedef returntype (*rhope_func)(calldata *); +typedef void (*special_func) (object *); -#define MethodName(name,type) f_ ## name ## _AT_ ## type +#define MethodName(name,type) f_ ## name ## AT_ ## type #define Func(name,numparams) \ @@ -134,4 +137,4 @@ goto sf_ ## tocall; -#endif //_FUNC_H_ \ No newline at end of file +#endif //_FUNC_H_