diff --git a/hprint.cpp b/hprint.cpp index 93ab0664..65f1b1a0 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -393,4 +393,13 @@ EX string as_cstring(string o) { #endif #endif + +#if HDR +template string lalign(int len, T... t) { + shstream hs; + print(hs, t...); + while(isize(hs.s) < len) hs.s += " "; + return hs.s; + } +#endif }