desc_base.h 315 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __DESC_BASE_H
#define __DESC_BASE_H

#define FT_BOXED_LIT		0
#define FT_RECORD 			1
#define FT_ADT 				2
#define FT_CAF 				3
#define FT_CAF_REDUCED 		4
#define FT_FUN				5
#define FT_SLICE			6
#define FT_PRIM				7

struct Desc {
    unsigned int type : 3;
    unsigned int arity : 8;
};

#endif // __DESC_H