mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-11 20:57:41 +00:00
a debug function added
This commit is contained in:
@@ -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); }
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user