Mercurial > repos > tabletprog
diff runtime/progfoot.inc @ 44:9dd370530f69
Fix escape codes in string literals. Don't print out the return value of main method. Fixup fib example to use print: method. Cleanup error handling in compiler slightly
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 12 Jul 2012 22:49:08 -0700 |
parents | 927fd7911a01 |
children | 2a9c6eed0c70 |
line wrap: on
line diff
--- a/runtime/progfoot.inc Thu Jul 12 22:10:58 2012 -0700 +++ b/runtime/progfoot.inc Thu Jul 12 22:49:08 2012 -0700 @@ -23,16 +23,7 @@ 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); - } else if(ret->meta == &lambda_meta) { - puts("returned lambda????"); - } else { - int i = 0; - for(; i < 16; ++i) { - if (ret->meta->meth_lookup[i] != &no_impl) { - printf("slot %d is set\n", i); - } - } + return reti32->num; } return 0; }