From 74bf728b841f24f39de67e24982d7bf91a6b0bcb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 24 Aug 2021 03:37:09 +0200 Subject: [PATCH] rulegen:: some weird stuff --- rulegen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rulegen.cpp b/rulegen.cpp index 854735f9..298c7bc0 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -727,6 +727,7 @@ EX int get_parent_dir(tcell *c) { } if(bestd == -1) { + debuglist = { c }; throw rulegen_failure("should not happen"); } } @@ -1304,6 +1305,7 @@ void push_deadstack(vector& hash, twalker w, tsinfo tsi, int dir) { hash.push_back(tsi); } else { + if(ts.rules.empty()) throw rulegen_retry("empty rule"); int r = ts.rules[tsi.second]; if(r > 0 && treestates[r].is_live) return; }