diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-01 10:19:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-01 10:19:04 -0700 |
commit | 62a52ffbfe2880fe754732ca3417eab96ff83738 (patch) | |
tree | 0aa59103af2256769a0792a6378babd6cad0eba0 /html/011load.cc.html | |
parent | 7ed2441bb547fb799bdd553e4f89c48fee7b60db (diff) | |
download | mu-62a52ffbfe2880fe754732ca3417eab96ff83738.tar.gz |
1690
Diffstat (limited to 'html/011load.cc.html')
-rw-r--r-- | html/011load.cc.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/html/011load.cc.html b/html/011load.cc.html index 3259becc..83b4d64c 100644 --- a/html/011load.cc.html +++ b/html/011load.cc.html @@ -147,6 +147,8 @@ bool next_instruction<span class="Delimiter">(</span>istream& in<span class= ++p<span class="Delimiter">;</span> <span class="Comment">// skip <-</span> <span class="Delimiter">}</span> + if <span class="Delimiter">(</span>p == words<span class="Delimiter">.</span>end<span class="Delimiter">())</span> + raise << <span class="Constant">"instruction prematurely ended with '<-'</span><span class="cSpecial">\n</span><span class="Constant">"</span> << die<span class="Delimiter">();</span> curr<span class="Delimiter">-></span>name = *p<span class="Delimiter">;</span> if <span class="Delimiter">(</span>Recipe_number<span class="Delimiter">.</span>find<span class="Delimiter">(</span>*p<span class="Delimiter">)</span> == Recipe_number<span class="Delimiter">.</span>end<span class="Delimiter">())</span> <span class="Delimiter">{</span> Recipe_number[*p] = Next_recipe_number++<span class="Delimiter">;</span> |