Mercurial > repos > rhope
diff runtime/bool.h @ 12:31f8182f3433
Finished fib test and did some small work on the c backend
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 25 May 2009 23:34:36 -0400 |
parents | |
children | aabda74c7a88 d2f9b0a9403d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/runtime/bool.h Mon May 25 23:34:36 2009 -0400 @@ -0,0 +1,17 @@ +#ifndef BOOL_H_ +#define BOOL_H_ +#include "object.h" + +OBegin + int32_t val; +Object(Boolean) + +#define Yes add_ref((object *)val_yes) +#define No add_ref((object *)val_no) + +extern t_Boolean * val_yes; +extern t_Boolean * val_no; + +MethodDef(If,Boolean) + +#endif //BOOL_H_