Skip to content
Snippets Groups Projects
Commit 925703b1 authored by Michal Štěpánek's avatar Michal Štěpánek
Browse files

Move constant enum

parent 8377dfd3
No related branches found
No related tags found
1 merge request!4Task 3 odevzdání
......@@ -5,15 +5,6 @@
#define OPERAND_STACK_INIT_CAPACITY 512
#define FRAME_STACK_CAPACITY 512
 
typedef enum {
CONSTANT_INTEGER,
CONSTANT_BOOLEAN,
CONSTANT_NULL,
CONSTANT_STRING,
CONSTANT_FUNCTION,
CONSTANT_CLASS
} ConstantType;
typedef struct Class {
u16 member_count;
u16 * members;
......
......@@ -11,6 +11,15 @@ typedef enum {
VALUE_INVALID
} ValueType;
 
typedef enum {
CONSTANT_INTEGER,
CONSTANT_BOOLEAN,
CONSTANT_NULL,
CONSTANT_STRING,
CONSTANT_FUNCTION,
CONSTANT_CLASS,
} ConstantType;
typedef struct Heap {
u8 * begin;
u8 * next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment