summary refs log tree commit diff
path: root/include/instructions.h
blob: 04509e9fdbb020bc70fe4c742f7591917bbc90e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __CCL_INSTRUCTIONS_H__
#define __CCL_INSTRUCTIONS_H__

#include "3cl.h"


#define INST(NAME) \
    struct CCLFrame *ccl_instruction_##NAME(struct CCL *ccl, struct CCLFrame *frame)

INST(nop);
INST(pushzero);
INST(increment);
INST(decrement);
INST(add);
INST(subtract);
INST(reverse);
INST(assign);
INST(invalid);

#undef INST
#define INST(NAME) ccl_instruction_##NAME

#endif /* __CCL_INSTRUCTIONS_H__ */