mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Add is_pointer convenience function.
This commit is contained in:
parent
64c98bd4c3
commit
7cb2e40bce
2 changed files with 9 additions and 0 deletions
|
@ -154,6 +154,7 @@ int is_integral (const type_t *type);
|
|||
int is_float (const type_t *type);
|
||||
int is_scalar (const type_t *type);
|
||||
int is_math (const type_t *type);
|
||||
int is_pointer (const type_t *type);
|
||||
int is_struct (const type_t *type);
|
||||
int is_class (const type_t *type);
|
||||
int is_array (const type_t *type);
|
||||
|
|
|
@ -696,6 +696,14 @@ is_struct (const type_t *type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
is_pointer (const type_t *type)
|
||||
{
|
||||
if (type->type == ev_pointer)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
is_class (const type_t *type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue