X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_t.h;h=6f5364acc8e304b17a1654cfc5de77c2dd209116;hb=00fad4c6c28b600fd17a6c3e8320dd6227c28e30;hp=d6131d5470bc2b438863a72f39f3fb2c254293a0;hpb=f7fcbd784cc31900ec3d73b4a523470a79475abd;p=cparser diff --git a/type_t.h b/type_t.h index d6131d5..6f5364a 100644 --- a/type_t.h +++ b/type_t.h @@ -210,4 +210,9 @@ static inline bool is_type_compound(const type_t *type) || type->kind == TYPE_COMPOUND_UNION; } +static inline bool is_type_valid(const type_t *type) +{ + return type->kind != TYPE_ERROR; +} + #endif