Rewriting constant casts into literals of said type

This commit is contained in:
Krzosa Karol
2022-06-22 14:01:15 +02:00
parent b0872e2303
commit f66b155e40
3 changed files with 45 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ function Ast_Decl *parse_decl(B32 is_global);
function void
print_token_context(Token *token){
if(!token) return;
printf(" :: %s:%d\n", token->file.str, (S32)token->line + 1);
printf(" :: tdi:%u %s:%d\n", token->di, token->file.str, (S32)token->line + 1);
// @Note(Krzosa): Print error line
{
int i = 0;