Mercurial > repos > tabletprog
view 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 source
#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} };