diff options
Diffstat (limited to '047global.cc')
-rw-r--r-- | 047global.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/047global.cc b/047global.cc index 90646f49..00e8ff15 100644 --- a/047global.cc +++ b/047global.cc @@ -32,7 +32,7 @@ global_space = 0; :(after "void write_memory(reagent x, vector<double> data)") if (x.name == "global-space") { 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(); + raise << maybe(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); |