a debug function added
This commit is contained in:
parent
cdc1696929
commit
4fbce2ae5a
|
@ -555,4 +555,12 @@ template<class... T> string lalign(int len, T... t) {
|
||||||
return hs.s;
|
return hs.s;
|
||||||
}
|
}
|
||||||
#endif
|
#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); }
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue