Mercurial > repos > rhope
view runtime/main_start.c @ 186:ba35ab624ec2
Add support for raw C function output from C backend as well as an option to use Boehm-GC instead of reference counting
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 07 Oct 2011 00:10:02 -0700 |
parents | |
children |
line wrap: on
line source
#ifdef RAW_FUNC #define rhope(func, io, inputs, callspace) ret = func_lookup[func](inputs, io); inout[0] = ret.retvals[0] #endif int main(int argc, char **argv) { blueprint * bp; int numret; int idx; #ifdef RAW_FUNC returntype ret; #endif object * inout[3]; register_builtin_types(); register_type_byid(TYPE_MUTABLEGLOBAL, sizeof(mutable_object)-sizeof(object), NULL, NULL, NULL);