comparison 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
comparison
equal deleted inserted replaced
185:4580c08fd4e8 186:ba35ab624ec2
1 #ifdef RAW_FUNC
2 #define rhope(func, io, inputs, callspace) ret = func_lookup[func](inputs, io); inout[0] = ret.retvals[0]
3 #endif
4
5 int main(int argc, char **argv)
6 {
7 blueprint * bp;
8 int numret;
9 int idx;
10 #ifdef RAW_FUNC
11 returntype ret;
12 #endif
13 object * inout[3];
14 register_builtin_types();
15 register_type_byid(TYPE_MUTABLEGLOBAL, sizeof(mutable_object)-sizeof(object), NULL, NULL, NULL);
16