1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 02:53:02 +00:00

Add Q and q formatters to buffer/format.

These are similar to P and p, but print values
on a single line for a much more compact version.
This commit is contained in:
Calvin Rose
2019-08-24 22:53:45 -04:00
parent 77870508de
commit 060d11e4c2
5 changed files with 16 additions and 4 deletions

View File

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