X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b799113bd4ec270504dd9f552142c1adfd6e583a..a2b8d7ada7c9b527d46e781a217292603379e9e0:/sig/types.hpp diff --git a/sig/types.hpp b/sig/types.hpp index d2367af..150a057 100644 --- a/sig/types.hpp +++ b/sig/types.hpp @@ -30,6 +30,7 @@ namespace sig { enum Primitive { + function_P = '\0', typename_P = '#', union_P = '(', string_P = '*', @@ -93,6 +94,10 @@ struct Type { struct Type *joc_parse_type(char **name, char eos, bool variable, bool signature); void joc_parse_signature(struct Signature *signature, char **name, char eos, bool variable); +_finline bool IsFunctional(Primitive primitive) { + return primitive == block_P || primitive == function_P; +} + _finline bool IsAggregate(Primitive primitive) { return primitive == struct_P || primitive == union_P; }