Skip to content

Commit 6e9a8f9

Browse files
committed
jimp: remove last dependency on nob.h
Unknown token must be unreachable anyway with our lexer.
1 parent 4634936 commit 6e9a8f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jimp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ static const char *jimp__token_kind(Jimp_Token token)
215215
case JIMP_STRING: return "string";
216216
case JIMP_NUMBER: return "number";
217217
}
218-
return temp_sprintf("<<UNKNOWN: %u>>", token);
218+
assert(0 && "unreachable");
219+
return NULL;
219220
}
220221

221222
bool jimp_array_begin(Jimp *jimp)

0 commit comments

Comments
 (0)