diff options
author | pommicket <pommicket@gmail.com> | 2023-10-17 12:03:03 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-10-17 12:03:03 -0400 |
commit | 7141f05bdc5df4270b0dd68704049eb70bdcc05b (patch) | |
tree | 3afa46b86e43104de203f9eb84a922a499cfd238 /ted.c | |
parent | 6ea5c07b116b98ebc836a10f88cf908d14c9b6c5 (diff) |
fix string arguments, nicer config parsing
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -138,6 +138,12 @@ void ted_set_message(Ted *ted, MessageType type, const char *fmt, ...) { void ted_error(Ted *ted, const char *fmt, ...) { va_list args; va_start(args, fmt); +#if DEBUG + va_list args2; + va_copy(args2, args); + vfprintf(stderr, fmt, args2); + fprintf(stderr, "\n"); +#endif ted_vset_message(ted, MESSAGE_ERROR, fmt, args); va_end(args); } |