diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-06 12:02:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-06 12:04:03 -0700 |
commit | ad8e984fd4590740cb6dc23e951848108f671aac (patch) | |
tree | 04c9c51d4506a6add01308b127d1819efdfade2c /cpp/013run | |
parent | cc3b58b6370f27fb3fb600d6538a542c2fe44d36 (diff) | |
download | mu-ad8e984fd4590740cb6dc23e951848108f671aac.tar.gz |
1024 - basic skeleton for running scenarios
For now every scenario parses to the same dummy scenario.
Diffstat (limited to 'cpp/013run')
-rw-r--r-- | cpp/013run | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/013run b/cpp/013run index 6888d8f5..7399b2e3 100644 --- a/cpp/013run +++ b/cpp/013run @@ -80,10 +80,11 @@ inline bool done(routine& rr) { return running_at(rr) >= steps(rr).size(); } +:(after "int main") + load("core.mu"); :(before "End Main") if (argc > 1) { setup(); - load("core.mu"); for (int i = 1; i < argc; ++i) { load(argv[i]); } @@ -99,6 +100,7 @@ if (argc > 1) { :(code) void load(string filename) { ifstream fin(filename.c_str()); + fin >> std::noskipws; add_recipes(fin); fin.close(); } |