diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2018-07-28 18:39:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 18:39:15 +0100 |
| commit | 8d2c4a78a19774d98f5603d78ab6520f39d18bcd (patch) | |
| tree | 95284815f9ec477819bbfd65e90c7cdae757a878 /src/tokenizer.cpp | |
| parent | 1ab40d86009ff569b66650eb35b050a68e11df89 (diff) | |
| parent | 8504ff920b057007382bbeefcaa8a40e35689526 (diff) | |
Merge pull request #238 from odin-lang/big-int
Big int
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); |