Mercurial > repos > tabletprog
diff runtime/proghead.inc @ 31:668f533e5284
Add initial version of C backend
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 07 Jul 2012 16:48:36 -0700 |
parents | |
children | a10f1b049193 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/runtime/proghead.inc Sat Jul 07 16:48:36 2012 -0700 @@ -0,0 +1,18 @@ +#include "object.h" +#include <stddef.h> +#include <stdlib.h> +#include <stdio.h> + +object * no_impl(uint32_t method_id, uint32_t num_args, object ** params) +{ + printf("method %d is not implemented on object\n", method_id); + exit(0); + return NULL; +} + +obj_meta lambda_meta = { + sizeof(closure), + {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} +}; +