diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-13 16:33:40 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-13 16:34:10 -0700 |
commit | 31401373614ec131d415e9c6bcbb83dd78b98b6e (patch) | |
tree | 9e9ea6ccffb1438f1f776b16be3ec5626e085b19 /043space.cc | |
parent | 5497090aa1e708c22cd240913a53dda32bb067aa (diff) | |
download | mu-31401373614ec131d415e9c6bcbb83dd78b98b6e.tar.gz |
1364 - trace call-stack when switching routines
Drop the #$%# 'encapsulated' stack ADT.
Diffstat (limited to '043space.cc')
-rw-r--r-- | 043space.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/043space.cc b/043space.cc index 88cc5aa3..ec63e19a 100644 --- a/043space.cc +++ b/043space.cc @@ -94,7 +94,7 @@ tmp.properties.push_back(pair<string, vector<string> >("raw", vector<string>())) :(code) index_t space_base(const reagent& x) { - return Current_routine->calls.top().default_space; + return Current_routine->calls.front().default_space; } index_t address(index_t offset, index_t base) { @@ -110,8 +110,8 @@ index_t address(index_t offset, index_t base) { :(after "void write_memory(reagent x, vector<double> data)") if (x.name == "default-space") { assert(data.size() == 1); - Current_routine->calls.top().default_space = data.at(0); -//? cout << "AAA " << Current_routine->calls.top().default_space << '\n'; //? 1 + Current_routine->calls.front().default_space = data.at(0); +//? cout << "AAA " << Current_routine->calls.front().default_space << '\n'; //? 1 return; } @@ -125,6 +125,6 @@ recipe main [ :(after "vector<double> read_memory(reagent x)") if (x.name == "default-space") { vector<double> result; - result.push_back(Current_routine->calls.top().default_space); + result.push_back(Current_routine->calls.front().default_space); return result; } |