diff options
Diffstat (limited to 'Build/source/utils/asymptote/symbol.cc')
-rw-r--r-- | Build/source/utils/asymptote/symbol.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/symbol.cc b/Build/source/utils/asymptote/symbol.cc index 0f9a506e839..94089223417 100644 --- a/Build/source/utils/asymptote/symbol.cc +++ b/Build/source/utils/asymptote/symbol.cc @@ -22,3 +22,16 @@ symbol *symbol::ecastsym=symbol::specialTrans(string("operator ecast")); } // namespace sym +#ifdef PRESYM +/* Define all of operator symbols SYM_PLUS, etc. */ +#define OPSYMBOL(str, name) \ + sym::symbol *name = sym::symbol::opTrans(str) +#include "opsymbols.h" +#undef OPSYMBOL + +/* Define all of the symbols of the type SYM(name) in selected files. */ +#define ADDSYMBOL(name) \ + sym::symbol *PRETRANSLATED_SYMBOL_##name = sym::symbol::literalTrans(#name) +#include "allsymbols.h" +#undef ADDSYMBOL +#endif |