annotate 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
rev   line source
pavone@31 1 #include "object.h"
pavone@31 2 #include <stddef.h>
pavone@31 3 #include <stdlib.h>
pavone@31 4 #include <stdio.h>
pavone@31 5
pavone@31 6 object * no_impl(uint32_t method_id, uint32_t num_args, object ** params)
pavone@31 7 {
pavone@31 8 printf("method %d is not implemented on object\n", method_id);
pavone@31 9 exit(0);
pavone@31 10 return NULL;
pavone@31 11 }
pavone@31 12
pavone@31 13 obj_meta lambda_meta = {
pavone@31 14 sizeof(closure),
pavone@31 15 {no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl,
pavone@31 16 no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl}
pavone@31 17 };
pavone@31 18