Explorar el Código

Update parser.h

blueloveTH hace 3 años
padre
commit
b23c4fe6c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/parser.h

+ 1 - 1
src/parser.h

@@ -31,7 +31,7 @@ constexpr TokenIndex TK(const char* const token) {
         while(*i && *j && *i == *j) { i++; j++;}
         if(*i == *j) return k;
     }
-    return 0;
+    UNREACHABLE();
 }
 
 #define TK_STR(t) kTokens[t]