Mercurial > repos > tabletprog
diff runtime/progfoot.inc @ 35:bf5e88f6419d
Use a function/method call strategy that actually works
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Jul 2012 21:32:28 -0700 |
parents | 668f533e5284 |
children | e7be612fd3ae |
line wrap: on
line diff
--- a/runtime/progfoot.inc Mon Jul 09 08:57:50 2012 -0700 +++ b/runtime/progfoot.inc Mon Jul 09 21:32:28 2012 -0700 @@ -1,10 +1,7 @@ int main(int argc, char ** argv) { - object * params[64]; - params[0] = mainModule(); - object * ret = mcall(METHOD_ID_MAIN, 1, params); - printf("%p:%p\n", ret->meta, &obj_int32_meta); + object * ret = mcall(METHOD_ID_MAIN, 1, mainModule()); if (ret->meta == &obj_int32_meta) { obj_int32 * reti32 = (obj_int32 *) ret; printf("%d\n", reti32->num);