mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
[qfcc] Add is_entity type test helper
This commit is contained in:
parent
ede7dd6d7e
commit
5c0c056e2c
2 changed files with 9 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue