소스 검색

jimp: remove last dependency on nob.h

Unknown token must be unreachable anyway with our lexer.
rexim 1 개월 전
부모
커밋
6e9a8f9203
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      jimp.h

+ 2 - 1
jimp.h

@@ -215,7 +215,8 @@ static const char *jimp__token_kind(Jimp_Token token)
    case JIMP_STRING:   return "string";
    case JIMP_NUMBER:   return "number";
    }
-   return temp_sprintf("<<UNKNOWN: %u>>", token);
+   assert(0 && "unreachable");
+   return NULL;
 }
 
 bool jimp_array_begin(Jimp *jimp)