about summary refs log tree commit diff stats
path: root/cpp/025trace
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 22:49:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 22:49:29 -0700
commit6d8ef6b12d37336a92c7a6b20b4b66f3ab424464 (patch)
tree49c4b2b75ebc85540861b2682e3d48fe958c5dc8 /cpp/025trace
parent0b0cfb6f1f4579eef463ffcb41ba782ddbd56035 (diff)
downloadmu-6d8ef6b12d37336a92c7a6b20b4b66f3ab424464.tar.gz
1189 - add extensions to all layers
I'm sick of fighting vim's filetype detection. No modeline and files
highlight in random colors. I add a modeline and it stops highlighting
tangle comments. Even though it read my #$%# vimrc! Fuck this shite.
Diffstat (limited to 'cpp/025trace')
-rw-r--r--cpp/025trace21
1 files changed, 0 insertions, 21 deletions
diff --git a/cpp/025trace b/cpp/025trace
deleted file mode 100644
index ae06cb8b..00000000
--- a/cpp/025trace
+++ /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;
-}