mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-23 18:07:41 +00:00
lalign function in hprint
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user