diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-02 11:43:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-02 11:43:48 -0700 |
commit | 981cc9e8e9fd2f76b4dced8b88f3dac41c87d761 (patch) | |
tree | d5658a8e665a218d51596818076829150ff3991c /cpp | |
parent | 3f3976b501249551347376a80c6ab66f7836c35e (diff) | |
download | mu-981cc9e8e9fd2f76b4dced8b88f3dac41c87d761.tar.gz |
1238 - stop dying on run("")
This makes our scenarios more flexible; we can now accept '+' and '-' trace lines in any order, because the tangler simply inserts a no-op run("") between them, and since we don't '===' clear the trace in between, later checks continue to apply to the trace from the first call to run().
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/020run.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/020run.cc b/cpp/020run.cc index 95a8a0b1..963fcd78 100644 --- a/cpp/020run.cc +++ b/cpp/020run.cc @@ -137,6 +137,7 @@ load_permanently("core.mu"); // helper for tests void run(string form) { vector<recipe_number> tmp = load(form); + if (tmp.empty()) return; transform_all(); run(tmp.front()); } |