about summary refs log tree commit diff stats
path: root/047global.cc
diff options
context:
space:
mode:
Diffstat (limited to '047global.cc')
-rw-r--r--047global.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/047global.cc b/047global.cc
index 6ce4b78f..39be9bc2 100644
--- a/047global.cc
+++ b/047global.cc
@@ -31,7 +31,8 @@ long long int global_space;
 global_space = 0;
 :(after "void write_memory(reagent x, vector<double> data)")
   if (x.name == "global-space") {
-    assert(scalar(data));
+    if (!scalar(data))
+      raise << current_recipe_name() << ": 'global-space' should be of type address:array:location, but tried to write " << to_string(data) << '\n' << end();
     if (Current_routine->global_space)
       raise << "routine already has a global-space; you can't over-write your globals" << end();
     Current_routine->global_space = data.at(0);
@@ -66,7 +67,6 @@ $warn: 0
 
 :(code)
 bool is_global(const reagent& x) {
-//?   cerr << x.to_string() << '\n'; //? 1
   for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) {
     if (x.properties.at(i).first == "space")
       return !x.properties.at(i).second.empty() && x.properties.at(i).second.at(0) == "global";