.
This commit is contained in:
parent
95d74c2ef4
commit
a66e58193f
25 changed files with 2600 additions and 93 deletions
|
|
@ -1,10 +1,8 @@
|
|||
#include "pretty_print.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "core.h"
|
||||
#include "os.h"
|
||||
#include "str.h"
|
||||
|
||||
#include "core.h"
|
||||
|
||||
strview_t pretty__colour[LOG_COL__COUNT] = {
|
||||
[LOG_COL_BLACK] = cstrv("black"),
|
||||
|
|
@ -28,6 +26,10 @@ strview_t pretty__colour[LOG_COL__COUNT] = {
|
|||
[LOG_COL_RESET] = cstrv("/"),
|
||||
};
|
||||
|
||||
strview_t pretty_log_to_colour(os_log_colour_e colour) {
|
||||
return pretty__colour[colour];
|
||||
}
|
||||
|
||||
void pretty_print(arena_t scratch, const char *fmt, ...) {
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue