mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
lalign function in hprint
This commit is contained in:
1 parent
d613f394cd
commit
d9e4ba62ec
1 file changed
+9
@@ -393,4 +393,13 @@ EX string as_cstring(string o) {
|
||||
#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