From 385d3080066bc22d264b1ae30ee2505cab6cc202 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 13 Jul 2015 17:20:56 -0700 Subject: 1769 - routines can now have global variables --- 044space.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to '044space.cc') diff --git a/044space.cc b/044space.cc index e32fbceb..9a975147 100644 --- a/044space.cc +++ b/044space.cc @@ -49,17 +49,12 @@ default_space = 0; reagent r = absolutize(x); :(code) reagent absolutize(reagent x) { -//? if (Recipe_ordinal.find("increment-counter") != Recipe_ordinal.end()) //? 1 -//? cout << "AAA " << "increment-counter/2: " << Recipe[Recipe_ordinal["increment-counter"]].steps.at(2).products.at(0).to_string() << '\n'; //? 1 //? cout << "absolutize " << x.to_string() << '\n'; //? 4 -//? cout << is_raw(x) << '\n'; //? 1 if (is_raw(x) || is_dummy(x)) return x; -//? cout << "not raw: " << x.to_string() << '\n'; //? 1 if (!x.initialized) raise << current_instruction().to_string() << ": reagent not initialized: " << x.to_string() << die(); reagent r = x; r.set_value(address(r.value, space_base(r))); -//? cout << "after absolutize: " << r.value << '\n'; //? 1 r.properties.push_back(pair >("raw", vector())); assert(is_raw(r)); return r; @@ -127,7 +122,6 @@ long long int address(long long int offset, long long int base) { if (x.name == "default-space") { assert(scalar(data)); Current_routine->calls.front().default_space = data.at(0); -//? cout << "AAA " << Current_routine->calls.front().default_space << '\n'; //? 1 return; } -- cgit 1.4.1-2-gfad0 ttests/test_callbacks.h?id=3f58aba2bd373b011f104c499ff42f1bf4b45226'>commit diff stats
blob: 35751d2ebe4d67062feb888cf102c4a6a54d653c (plain) (blame)
1
2