diff options
Diffstat (limited to 'sloth.h')
-rw-r--r-- | sloth.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -15,12 +15,15 @@ typedef struct SlothInstr SlothInstr; struct SlothDict { SlothHash hash; int c_func; + int immediate; SlothError (*func)(Sloth *ctx); SlothInstr *instrs; SlothDict *next; }; #define SLOTH_DICT_C(word, func) \ - (SlothDict){XXH32(word, strlen(word), 0), 1, func, NULL, NULL} + (SlothDict){XXH32(word, strlen(word), 0), 1, 0, func, NULL, NULL} +#define SLOTH_DICT_I(word, func) \ + (SlothDict){XXH32(word, strlen(word), 0), 1, 1, func, NULL, NULL} struct Sloth { SlothByte *stack; |