diff options
Diffstat (limited to 'vmstk.h')
-rw-r--r-- | vmstk.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -22,9 +22,14 @@ #ifndef INCLUDED_VMSTK_H #define INCLUDED_VMSTK_H +/* The max size of the stack - TODO: make configurable */ +#define VMSTK_SIZE 256 + /* the vmstk object */ typedef struct vmstk_s { BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */ + var_t *vStk[VMSTK_SIZE];/* the actual stack */ + int iStkPtr; /* stack pointer, points to next free location, grows from 0 --> topend */ } vmstk_t; |