diff options
author | Norbert Preining <norbert@preining.info> | 2020-07-08 03:01:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-07-08 03:01:45 +0000 |
commit | 8c3fedd243b69349b426144e5e2b94ef4aea6a4c (patch) | |
tree | f5842753f11a90141f3cc2e356c3a04766e8d81e /graphics/asymptote/stack.cc | |
parent | ef87f13c4503a2aa4a9098cbf33e0bfcad19008e (diff) |
CTAN sync 202007080301
Diffstat (limited to 'graphics/asymptote/stack.cc')
-rw-r--r-- | graphics/asymptote/stack.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/graphics/asymptote/stack.cc b/graphics/asymptote/stack.cc index 7ffb6bcb59..3c56e5e048 100644 --- a/graphics/asymptote/stack.cc +++ b/graphics/asymptote/stack.cc @@ -32,6 +32,8 @@ void breakpoint(vm::stack *Stack, absyntax::runnable *r); namespace vm { +const char *dereferenceNullPointer="dereference of null pointer"; + mem::list<bpinfo> bplist; namespace { @@ -428,7 +430,7 @@ void stack::runWithOrWithoutClosure(lambda *l, vars_t vars, vars_t parent) case inst::fieldpush: { vars_t frame = pop<vars_t>(); if (!frame) - error("dereference of null pointer"); + error(dereferenceNullPointer); push(FRAMEVAR(frame, get<Int>(i))); break; } @@ -436,7 +438,7 @@ void stack::runWithOrWithoutClosure(lambda *l, vars_t vars, vars_t parent) case inst::fieldsave: { vars_t frame = pop<vars_t>(); if (!frame) - error("dereference of null pointer"); + error(dereferenceNullPointer); FRAMEVAR(frame, get<Int>(i)) = top(); break; } @@ -446,7 +448,7 @@ void stack::runWithOrWithoutClosure(lambda *l, vars_t vars, vars_t parent) #error NOT REIMPLEMENTED vars_t frame = pop<vars_t>(); if (!frame) - error("dereference of null pointer"); + error(dereferenceNullPointer); FRAMEVAR(get<Int>(i)) = pop(); break; } |