diff --git a/tools/qfcc/include/type.h b/tools/qfcc/include/type.h index 791ea0fc9..ba3b82f1e 100644 --- a/tools/qfcc/include/type.h +++ b/tools/qfcc/include/type.h @@ -162,6 +162,7 @@ int is_quaternion (const type_t *type) __attribute__((pure)); int is_math (const type_t *type) __attribute__((pure)); int is_pointer (const type_t *type) __attribute__((pure)); int is_field (const type_t *type) __attribute__((pure)); +int is_entity (const type_t *type) __attribute__((pure)); int is_struct (const type_t *type) __attribute__((pure)); int is_array (const type_t *type) __attribute__((pure)); int is_structural (const type_t *type) __attribute__((pure)); diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index cdf7ca6df..4404f2ed0 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -811,6 +811,14 @@ is_field (const type_t *type) return 0; } +int +is_entity (const type_t *type) +{ + if (type->type == ev_entity) + return 1; + return 0; +} + int is_array (const type_t *type) {