mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-17 10:49:58 +00:00
lalign function in hprint
This commit is contained in:
parent
d613f394cd
commit
d9e4ba62ec
|
@ -393,4 +393,13 @@ EX string as_cstring(string o) {
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if HDR
|
||||||
|
template<class... T> string lalign(int len, T... t) {
|
||||||
|
shstream hs;
|
||||||
|
print(hs, t...);
|
||||||
|
while(isize(hs.s) < len) hs.s += " ";
|
||||||
|
return hs.s;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user