diff options
Diffstat (limited to 'Build/source/utils/asymptote/runtime.in')
-rw-r--r-- | Build/source/utils/asymptote/runtime.in | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/runtime.in b/Build/source/utils/asymptote/runtime.in index 09a946e6b60..987f5151bc6 100644 --- a/Build/source/utils/asymptote/runtime.in +++ b/Build/source/utils/asymptote/runtime.in @@ -166,6 +166,14 @@ function *realTripleFunction() const size_t camp::ColorComponents[]={0,0,1,3,4,0}; namespace vm { +#if COMPACT +const Int DefaultValue=0x7fffffffffffffffLL; +const Int Undefined=0x7ffffffffffffffeLL; + +const item Default=DefaultValue; +#else +const item Default=item(default_t()); +#endif } namespace run { @@ -190,7 +198,6 @@ void writestring(stack *s) } } -default_t def; string emptystring; pair zero; @@ -245,7 +252,7 @@ item :pushNullFunction() // making a function call). item :pushDefault() { - return def; + return Default; } @@ -741,7 +748,7 @@ void list(string *s, bool imports=false) { if(*s == "-") return; trans::genv ge; - symbol *name=symbol::trans(*s); + symbol name=symbol::trans(*s); record *r=ge.getModule(name,*s); r->e.list(imports ? 0 : r); } |