mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 19:10:35 +00:00
print walkers
This commit is contained in:
parent
8d1e341555
commit
473cd89d76
2
hyper.h
2
hyper.h
@ -4308,6 +4308,8 @@ inline void print(hstream& hs, const string& s) { hs.write_chars(s.c_str(), isiz
|
||||
inline void print(hstream& hs, int i) { print(hs, its(i)); }
|
||||
inline void print(hstream& hs, ld x) { print(hs, fts(x)); }
|
||||
|
||||
template<class T> void print(hstream& hs, const walker<T>& w) { print(hs, "[", w.at, "/", w.spin, "/", w.mirrored, "]"); }
|
||||
|
||||
struct comma_printer {
|
||||
bool first;
|
||||
hstream& hs;
|
||||
|
Loading…
Reference in New Issue
Block a user