summaryrefslogtreecommitdiff
path: root/src/nb_obj.h
blob: 5793045b41963d949734babd772ec31b47c5677b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef NB_OBJ_H
#define NB_OBJ_H

#define _GCHeader GCObject* next; int tt; int marked 

typedef struct {
	_GCHeader;
} GCObject;

typedef struct {
	int n;
} Instruction;


typedef struct {
	int p;

} Proto; // º¯ÊýÔ­ÐÍ
 

typedef struct {
	Proto* proto; 

} Closure; // ±Õ°ü


typedef struct {
	_GCHeader;
	
} Map;

typedef struct {
	_GCHeader;
} Hashset;

typedef struct {
	_GCHeader;
} List;

#endif