aboutsummaryrefslogtreecommitdiff
path: root/include/program.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/program.h')
-rw-r--r--include/program.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/program.h b/include/program.h
index 6135726..c097c7b 100644
--- a/include/program.h
+++ b/include/program.h
@@ -3,10 +3,15 @@
#include "std/buffer.h"
#include "std/hash_map.h"
+#include "value.h"
+
+#define TSL_STACK_MAX_SIZE 255
typedef struct {
TslBuffer /*TslBytecode*/ function_bytecode_list;
- TslHashMap variables;
+ TslHashMap /*TslStringView, TslValue*/ variables;
+ TslValue stack_values[TSL_STACK_MAX_SIZE];
+ size_t stack_index;
} TslProgram;
typedef enum {