1
0
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:
Zeno Rogue 2020-03-29 12:01:29 +02:00
parent d613f394cd
commit d9e4ba62ec

View File

@ -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
} }