a debug function added

This commit is contained in:
Zeno Rogue 2023-12-17 17:47:05 +01:00
parent cdc1696929
commit 4fbce2ae5a
1 changed files with 8 additions and 0 deletions

View File

@ -555,4 +555,12 @@ template<class... T> string lalign(int len, T... t) {
return hs.s;
}
#endif
map<string, string> last;
EX void debug_view(string context, string s) {
string& old = last[context];
if(s != old) { old = s; println(hlog, s); }
}
}