Mercurial > repos > rhope
view runtime/integer.c @ 59:4f1ae6eb71d8
Use replicated switch statement for returns and late-bound calls
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 08 Oct 2009 22:54:30 -0400 |
parents | d2f9b0a9403d |
children | 04baa003de5a |
line wrap: on
line source
#include "integer.h" #include "builtin.h" #include "context.h" #include "bool.h" object * make_Int32(int32_t val) { t_Int32 * obj; object * ret = new_object(TYPE_INT32); obj = (t_Int32 *)ret; obj->num = val; return ret; }