diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-21 17:53:20 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-21 17:53:20 -0700 |
commit | 7da71d032cc79b0dbcf962abdbdbb2732143a1d3 (patch) | |
tree | d6d1e4a85e45548eebb5add79d1b6a5c9fdc634c /cpp/013run | |
parent | b9011f3481c7cb630bdfdf69feee24ddd540af4a (diff) | |
download | mu-7da71d032cc79b0dbcf962abdbdbb2732143a1d3.tar.gz |
966 - c++: starting on default-space
Diffstat (limited to 'cpp/013run')
-rw-r--r-- | cpp/013run | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/013run b/cpp/013run index 22239667..26436392 100644 --- a/cpp/013run +++ b/cpp/013run @@ -26,12 +26,16 @@ struct routine { routine(recipe_number r) :running_recipe(r), running_at(0) {} }; +:(before "End Globals") +routine Current_routine(0); + :(code) void run(recipe_number r) { run(routine(r)); } void run(routine rr) { + Current_routine = rr; while (!done(rr)) { vector<instruction>& instructions = steps(rr); size_t& pc = running_at(rr); |