summaryrefslogtreecommitdiff
path: root/graphics/asymptote/array.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-07-08 03:01:45 +0000
committerNorbert Preining <norbert@preining.info>2020-07-08 03:01:45 +0000
commit8c3fedd243b69349b426144e5e2b94ef4aea6a4c (patch)
treef5842753f11a90141f3cc2e356c3a04766e8d81e /graphics/asymptote/array.h
parentef87f13c4503a2aa4a9098cbf33e0bfcad19008e (diff)
CTAN sync 202007080301
Diffstat (limited to 'graphics/asymptote/array.h')
-rw-r--r--graphics/asymptote/array.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/asymptote/array.h b/graphics/asymptote/array.h
index 58a97d7b25..cc39141768 100644
--- a/graphics/asymptote/array.h
+++ b/graphics/asymptote/array.h
@@ -14,6 +14,8 @@
namespace vm {
+extern const char *dereferenceNullArray;
+
// Arrays are vectors with push and pop functions.
class array : public mem::vector<item> {
bool cycle;
@@ -75,7 +77,7 @@ inline T read(const array &a, size_t i)
inline size_t checkArray(const vm::array *a)
{
- if(a == 0) vm::error("dereference of null array");
+ if(a == 0) vm::error(dereferenceNullArray);
return a->size();
}