diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-14 19:06:57 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-14 19:08:38 -0700 |
commit | 82ac0b7ecbc145ed8c8ecd8309166f654af1ee75 (patch) | |
tree | fb24d253bec1b3a24bf9d3e6d746111dbf4b856f /cpp/090debug | |
parent | 0edf822f996c5def4588cc207d1977cffc3e9a0c (diff) | |
download | mu-82ac0b7ecbc145ed8c8ecd8309166f654af1ee75.tar.gz |
1063 - variable names for surrounding spaces now work
This was a pain to debug.
Diffstat (limited to 'cpp/090debug')
-rw-r--r-- | cpp/090debug | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/090debug b/cpp/090debug index 08373a49..b6acae9d 100644 --- a/cpp/090debug +++ b/cpp/090debug @@ -7,11 +7,13 @@ assert(Next_recipe_number < _PRINT); :(before "End Primitive Recipe Implementations") case _PRINT: { if (isa_literal(instructions[pc].ingredients[0])) { + trace("run") << "$print: " << instructions[pc].ingredients[0].name; cout << instructions[pc].ingredients[0].name << '\n'; break; } vector<int> result(read_memory(instructions[pc].ingredients[0])); for (size_t i = 0; i < result.size(); ++i) { + trace("run") << "$print: " << result[i]; cout << result[i] << " "; } cout << '\n'; |