Message ID | 20170322173257.63019-3-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
diff --git a/symbol.h b/symbol.h index 36f8345b5..ee17ba643 100644 --- a/symbol.h +++ b/symbol.h @@ -347,6 +347,13 @@ static inline int is_ptr_type(struct symbol *type) return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; } +static inline int is_func_type(struct symbol *type) +{ + if (type->type == SYM_NODE) + type = type->ctype.base_type; + return type->type == SYM_FN; +} + static inline int is_float_type(struct symbol *type) { if (type->type == SYM_NODE)
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- symbol.h | 7 +++++++ 1 file changed, 7 insertions(+)