about summary refs log tree commit diff stats
path: root/075scenario_console.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-01 17:30:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-01 17:30:14 -0700
commit166e3c0d407a967d25d793b6a9db56ffd7a03727 (patch)
tree73b18adca78fda2a4b1ef5a65fe3851e77248d93 /075scenario_console.cc
parent16386f766ec1e347db8a19ebfd9cedaa9b281a5f (diff)
downloadmu-166e3c0d407a967d25d793b6a9db56ffd7a03727.tar.gz
2232
Diffstat (limited to '075scenario_console.cc')
-rw-r--r--075scenario_console.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/075scenario_console.cc b/075scenario_console.cc
index 0f7d649f..06bf7d63 100644
--- a/075scenario_console.cc
+++ b/075scenario_console.cc
@@ -38,12 +38,14 @@ Name[r]["console"] = CONSOLE;
 :(before "End is_special_name Cases")
 if (s == "console") return true;
 
-//: Unlike assume-keyboard, assume-console is easiest to implement as just a
-//: primitive recipe.
 :(before "End Primitive Recipe Declarations")
 ASSUME_CONSOLE,
 :(before "End Primitive Recipe Numbers")
 Recipe_ordinal["assume-console"] = ASSUME_CONSOLE;
+:(before "End Primitive Recipe Checks")
+case ASSUME_CONSOLE: {
+  break;
+}
 :(before "End Primitive Recipe Implementations")
 case ASSUME_CONSOLE: {
   // create a temporary recipe just for parsing; it won't contain valid instructions
@@ -225,6 +227,10 @@ scenario events-in-scenario [
 REPLACE_IN_CONSOLE,
 :(before "End Primitive Recipe Numbers")
 Recipe_ordinal["replace-in-console"] = REPLACE_IN_CONSOLE;
+:(before "End Primitive Recipe Checks")
+case REPLACE_IN_CONSOLE: {
+  break;
+}
 :(before "End Primitive Recipe Implementations")
 case REPLACE_IN_CONSOLE: {
   assert(scalar(ingredients.at(0)));