X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=type_t.h;h=b0c21ac41c31779dfe46a49f3b93f2dd66d8d5be;hb=0a880c90fd6d1ec23c4ec1956f3b92694ec0a139;hp=48db72aed7e8f24e7cba53b39e3f7a5b6654de1b;hpb=952c939a1895224e3af1835ea3316fbbc1f58c73;p=cparser diff --git a/type_t.h b/type_t.h index 48db72a..b0c21ac 100644 --- a/type_t.h +++ b/type_t.h @@ -229,6 +229,11 @@ static inline bool is_type_atomic(const type_t *type, atomic_type_kind_t atype) return atomic_type->akind == atype; } +static inline bool is_type_void(type_t const *const type) +{ + return is_type_atomic(type, ATOMIC_TYPE_VOID); +} + static inline bool is_type_pointer(const type_t *type) { assert(!is_typeref(type));