diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 21:17:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 21:17:24 -0700 |
commit | b96af395b9af2ff9df94b3e82213171f30827c8d (patch) | |
tree | 17c8c12648ccc25625e2534ec8d74fbe8f1542cc /cpp/025trace.cc | |
parent | 2e3b597fe85b654e82b891c22d50754fa5a26156 (diff) | |
download | mu-b96af395b9af2ff9df94b3e82213171f30827c8d.tar.gz |
1276 - make C++ version the default
I've tried to update the Readme, but there are at least a couple of issues.
Diffstat (limited to 'cpp/025trace.cc')
-rw-r--r-- | cpp/025trace.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cpp/025trace.cc b/cpp/025trace.cc deleted file mode 100644 index ae06cb8b..00000000 --- a/cpp/025trace.cc +++ /dev/null @@ -1,21 +0,0 @@ -//: Allow mu programs to log facts just like we've been doing in C++ so far. - -:(scenario trace) -recipe main [ - trace [foo], [this is a trace in mu] -] -+foo: this is a trace in mu - -:(before "End Primitive Recipe Declarations") -TRACE, -:(before "End Primitive Recipe Numbers") -Recipe_number["trace"] = TRACE; -:(before "End Primitive Recipe Implementations") -case TRACE: { - assert(isa_literal(current_instruction().ingredients[0])); - string label = current_instruction().ingredients[0].name; - assert(isa_literal(current_instruction().ingredients[1])); - string message = current_instruction().ingredients[1].name; - trace(label) << message; - break; -} |