Mercurial > repos > tabletprog
diff runtime/proghead.inc @ 34:a10f1b049193
Working closures, but need to rethink method call strategy
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Jul 2012 08:57:50 -0700 |
parents | 668f533e5284 |
children | bf5e88f6419d |
line wrap: on
line diff
--- a/runtime/proghead.inc Sun Jul 08 12:32:24 2012 -0700 +++ b/runtime/proghead.inc Mon Jul 09 08:57:50 2012 -0700 @@ -3,9 +3,12 @@ #include <stdlib.h> #include <stdio.h> +object * main_module; + object * no_impl(uint32_t method_id, uint32_t num_args, object ** params) { - printf("method %d is not implemented on object\n", method_id); + printf("method %d is not implemented on object %p\n", method_id, params[0]); + printf("main_module %p\n", main_module); exit(0); return NULL; } @@ -15,4 +18,3 @@ {no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl} }; -