thunk.h 414 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __THUNK_H
#define __THUNK_H

#include "desc.h"
#include "code.h"

struct Thunk
{
	struct Desc* desc;
	union
	{
		int _int;
		double _real;	// TODO: move "real" out of here, too long 
		char _char;
		int _bool;
		struct CleanString* _string_ptr;
		//struct CleanString _string;
	};
};

struct Thunk* createI(int i);
22
struct Thunk* createF(Desc* f, int nrargs);
23
24
25
26

void print(Thunk* thunk);

#endif // __THUNK_H