X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_t.h;h=becc8a0df3f610bb28d18cb0c2f67f77b5fa79d8;hb=9e9141455d9e7a9028d7ffa1d5656b1e9bb25c74;hp=894270d058e00e287e9c2fe758f9c809e6f85334;hpb=5668cfa66fad0283559dc1f9deaf2bd16440efe4;p=cparser diff --git a/type_t.h b/type_t.h index 894270d..becc8a0 100644 --- a/type_t.h +++ b/type_t.h @@ -262,6 +262,7 @@ static inline bool is_type_compound(const type_t *type) static inline bool is_type_valid(const type_t *type) { + assert(!is_typeref(type)); return type->kind != TYPE_ERROR; }