about summary refs log tree commit diff stats
path: root/cpp/090debug
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/090debug')
-rw-r--r--cpp/090debug21
1 files changed, 0 insertions, 21 deletions
diff --git a/cpp/090debug b/cpp/090debug
deleted file mode 100644
index d81071e9..00000000
--- a/cpp/090debug
+++ /dev/null
@@ -1,21 +0,0 @@
-//: Recipe to look at elements of containers.
-
-:(before "End Primitive Recipe Declarations")
-_PRINT,
-:(before "End Primitive Recipe Numbers")
-Recipe_number["$print"] = _PRINT;
-:(before "End Primitive Recipe Implementations")
-case _PRINT: {
-  if (isa_literal(current_instruction().ingredients[0])) {
-    trace("run") << "$print: " << current_instruction().ingredients[0].name;
-    cout << current_instruction().ingredients[0].name;
-    break;
-  }
-  vector<int> result(read_memory(current_instruction().ingredients[0]));
-  for (size_t i = 0; i < result.size(); ++i) {
-    trace("run") << "$print: " << result[i];
-    if (i > 0) cout << " ";
-    cout << result[i];
-  }
-  break;
-}