mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 14:14:59 -07:00
BigInt support in the constant system
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user