mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
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;
|
||||
}
|
||||
#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
Block a user