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 e630c5a99b1..c4cb5a504df 100644 --- a/Build/source/utils/asymptote/symbol.h +++ b/Build/source/utils/asymptote/symbol.h @@ -57,10 +57,17 @@ public: static symbol *ecastsym; static symbol *literalTrans(string s) { +#ifdef SYMACC + symbol &slot = dict[s]; + if (slot.name.empty()) + slot=symbol(s); + return &slot; +#else if (dict.find(s) != dict.end()) return &dict[s]; else return &(dict[s]=symbol(s)); +#endif } static symbol *opTrans(string s) { |