diff options
Diffstat (limited to 'src/core/stack.h')
| -rw-r--r-- | src/core/stack.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/stack.h b/src/core/stack.h index 49f347c..f699b52 100644 --- a/src/core/stack.h +++ b/src/core/stack.h @@ -4,8 +4,11 @@ stack globals once the heap is ready. addresses are vm word indices. */ #ifndef TINYVM_STACK_H #define TINYVM_STACK_H +#ifndef VM_TLS +#define VM_TLS +#endif -static Cell stack_control; +static VM_TLS Cell stack_control; enum { SC_FRAME_FLOOR, SC_FRAME_TOP, SC_FRAME_GUARD, SC_DATA_LOW, SC_DATA_TOP, SC_DATA_NODE, |
