1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-13 20:18:06 +00:00

Add %M, %m, %N, and %n formatters.

These will not truncate long values.
This commit is contained in:
Calvin Rose
2020-04-26 13:17:28 -05:00
parent 7b5f40772f
commit f6bd41ada7
3 changed files with 24 additions and 9 deletions

View File

@@ -1362,6 +1362,7 @@ JANET_API int janet_verify(JanetFuncDef *def);
/* Pretty printing */
#define JANET_PRETTY_COLOR 1
#define JANET_PRETTY_ONELINE 2
#define JANET_PRETTY_NOTRUNC 4
JANET_API JanetBuffer *janet_pretty(JanetBuffer *buffer, int depth, int flags, Janet x);
/* Misc */