1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-28 09:20:26 +00:00

Add %t formatter to janet.

Was not present in printf and family.
This commit is contained in:
Calvin Rose 2020-09-05 20:21:49 -05:00
parent 33283b1b6e
commit 3c64596ea1
2 changed files with 11 additions and 8 deletions

View File

@ -955,6 +955,9 @@ void janet_buffer_format(
janet_description_b(b, argv[arg]); janet_description_b(b, argv[arg]);
break; break;
} }
case 't':
janet_buffer_push_cstring(b, typestr(argv[arg]));
break;
case 'M': case 'M':
case 'm': case 'm':
case 'N': case 'N':