Mercurial > repos > tabletprog
comparison 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 |
comparison
equal
deleted
inserted
replaced
30:608eb70fe261 | 31:668f533e5284 |
---|---|
1 #include "object.h" | |
2 #include <stddef.h> | |
3 #include <stdlib.h> | |
4 #include <stdio.h> | |
5 | |
6 object * no_impl(uint32_t method_id, uint32_t num_args, object ** params) | |
7 { | |
8 printf("method %d is not implemented on object\n", method_id); | |
9 exit(0); | |
10 return NULL; | |
11 } | |
12 | |
13 obj_meta lambda_meta = { | |
14 sizeof(closure), | |
15 {no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, | |
16 no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl} | |
17 }; | |
18 |