summaryrefslogtreecommitdiff
path: root/graphics/asymptote/array.h
diff options
context:
space:
mode:
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();
}