diff options
Diffstat (limited to 'html/034call.cc.html')
-rw-r--r-- | html/034call.cc.html | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/html/034call.cc.html b/html/034call.cc.html index 5e9d93b0..e408b840 100644 --- a/html/034call.cc.html +++ b/html/034call.cc.html @@ -14,8 +14,8 @@ pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background- body { font-family: monospace; color: #eeeeee; background-color: #080808; } * { font-size: 1.05em; } .traceContains { color: #008000; } -.cSpecial { color: #008000; } .Constant { color: #00a0a0; } +.cSpecial { color: #008000; } .SalientComment { color: #00ffff; } .Comment { color: #9090ff; } .Delimiter { color: #a04060; } @@ -117,8 +117,10 @@ inline const instruction& current_instruction<span class="Delimiter">()</spa default: <span class="Delimiter">{</span> <span class="Comment">// not a primitive; try to look up the book of recipes</span> if <span class="Delimiter">(</span>Recipe<span class="Delimiter">.</span>find<span class="Delimiter">(</span>current_instruction<span class="Delimiter">().</span>operation<span class="Delimiter">)</span> == Recipe<span class="Delimiter">.</span>end<span class="Delimiter">())</span> <span class="Delimiter">{</span> - raise << <span class="Constant">"undefined operation "</span> << current_instruction<span class="Delimiter">().</span>operation << <span class="Constant">": "</span> << current_instruction<span class="Delimiter">().</span>to_string<span class="Delimiter">()</span> << <span class="cSpecial">'\n'</span> << end<span class="Delimiter">();</span> - <span class="Identifier">break</span><span class="Delimiter">;</span> + raise << current_recipe_name<span class="Delimiter">()</span> << <span class="Constant">": undefined operation in '"</span> << current_instruction<span class="Delimiter">().</span>to_string<span class="Delimiter">()</span> << <span class="Constant">"'</span><span class="cSpecial">\n</span><span class="Constant">"</span> << end<span class="Delimiter">();</span> + <span class="Comment">// stop running this instruction immediately</span> + ++current_step_index<span class="Delimiter">();</span> + <span class="Identifier">continue</span><span class="Delimiter">;</span> <span class="Delimiter">}</span> Current_routine<span class="Delimiter">-></span>calls<span class="Delimiter">.</span>push_front<span class="Delimiter">(</span>call<span class="Delimiter">(</span>current_instruction<span class="Delimiter">().</span>operation<span class="Delimiter">));</span> call_housekeeping: @@ -127,6 +129,20 @@ default: <span class="Delimiter">{</span> <span class="Identifier">continue</span><span class="Delimiter">;</span> <span class="Comment">// not done with caller; don't increment current_step_index()</span> <span class="Delimiter">}</span> +<span class="Delimiter">:(scenario calling_undefined_recipe_warns)</span> +<span class="Special">% Hide_warnings = true;</span> +recipe main [ + foo +] +<span class="traceContains">+warn: main: undefined operation in 'foo '</span> + +<span class="Delimiter">:(scenario calling_undefined_recipe_handles_missing_result)</span> +<span class="Special">% Hide_warnings = true;</span> +recipe main [ + x:number<span class="Special"> <- </span>foo +] +<span class="traceContains">+warn: main: undefined operation in 'x:number <- foo '</span> + <span class="SalientComment">//:: finally, we need to fix the termination conditions for the run loop</span> <span class="Delimiter">:(replace{} "inline bool routine::completed() const")</span> |