mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Cleanup
This commit is contained in:
parent
1fb0cad7b9
commit
70f69899fc
3 changed files with 52 additions and 1 deletions
|
|
@ -74,6 +74,14 @@ extern char ansi_format[];
|
|||
print_tainted = false; \
|
||||
}
|
||||
|
||||
#define tio_printf_raw(format, args...) \
|
||||
{ \
|
||||
if (print_tainted) \
|
||||
putchar('\n'); \
|
||||
ansi_printf_raw("[%s] " format, current_time(), ## args); \
|
||||
print_tainted = false; \
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#define tio_debug_printf(format, args...) \
|
||||
fprintf (stdout, "[debug] " format, ## args)
|
||||
|
|
@ -87,3 +95,4 @@ extern char ansi_format[];
|
|||
void print_hex(char c);
|
||||
void print_normal(char c);
|
||||
void print_init_ansi_formatting(void);
|
||||
void tio_printf_array(const char *array);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue