diff options
Diffstat (limited to 'Build/source/utils/asymptote/types.h')
-rw-r--r-- | Build/source/utils/asymptote/types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/types.h b/Build/source/utils/asymptote/types.h index 72650f9c91a..22c1daf8936 100644 --- a/Build/source/utils/asymptote/types.h +++ b/Build/source/utils/asymptote/types.h @@ -106,6 +106,9 @@ public: return false; } + bool isError() const { return kind == ty_error; } + bool isNotError() const { return !isError(); } + // The following are only used by the overloaded type, but it is so common // to test for an overloaded type then iterate over its types, that this // allows the code: @@ -118,6 +121,7 @@ public: bool isOverloaded() const { return kind == ty_overloaded; } + bool isNotOverloaded() const { return !isOverloaded(); } ty_iterator begin(); ty_iterator end(); |