diff options
| author | gingerBill <bill@gingerbill.org> | 2018-07-28 00:41:31 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-07-28 00:41:31 +0100 |
| commit | c3c783424604b14cdd86950bf4b0aaded1f97316 (patch) | |
| tree | cf8eb6d5f40545bdd63c2b8f81ffa645119e8473 /src/tokenizer.cpp | |
| parent | d0e04bf569465196e0679bf068126988dcab5122 (diff) | |
BigInt support in the constant system
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index da0e6517d..c1f4bd4f1 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -292,6 +292,16 @@ void error(Token token, char *fmt, ...) { va_end(va); } +void error(TokenPos pos, char *fmt, ...) { + va_list va; + va_start(va, fmt); + Token token = {}; + token.pos = pos; + error_va(token, fmt, va); + va_end(va); +} + + void syntax_error(Token token, char *fmt, ...) { va_list va; va_start(va, fmt); |