diff options
Diffstat (limited to 'Build/source/utils/asymptote/symbol.h')
-rw-r--r-- | Build/source/utils/asymptote/symbol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/symbol.h b/Build/source/utils/asymptote/symbol.h index 35204f16f85..30ebe54fcc5 100644 --- a/Build/source/utils/asymptote/symbol.h +++ b/Build/source/utils/asymptote/symbol.h @@ -64,6 +64,9 @@ struct symbol { bool special() const { return *this == initsym || *this == castsym || *this == ecastsym; } + bool notSpecial() const { + return !special(); + } // Translate a string into a unique symbol, such that two strings are equal // if and only if their resulting symbols are equal. @@ -97,6 +100,10 @@ struct symbol { return s1.hashplus == s2.hashplus; } + friend bool operator!= (symbol s1, symbol s2) { + return s1.hashplus != s2.hashplus; + } + friend bool operator< (symbol s1, symbol s2) { return s1.hashplus < s2.hashplus; } |