comparison libui/ui/debug.c @ 168:aab824406d3d

misc: all printf-like function are name foof and vfoof
author David Demelier <markand@malikania.fr>
date Tue, 20 Oct 2020 15:09:39 +0200
parents 13b7a1a4a72c
children 6992085d47fd
comparison
equal deleted inserted replaced
167:b9b826cd9832 168:aab824406d3d
29 .enable = true 29 .enable = true
30 #endif 30 #endif
31 }; 31 };
32 32
33 void 33 void
34 debug(struct debug_report *report, const char *fmt, ...) 34 debugf(struct debug_report *report, const char *fmt, ...)
35 { 35 {
36 assert(report); 36 assert(report);
37 assert(fmt); 37 assert(fmt);
38 38
39 if (!debug_options.enable) 39 if (!debug_options.enable)
40 return; 40 return;
41 41
42 va_list ap; 42 va_list ap;
43 43
44 va_start(ap, fmt); 44 va_start(ap, fmt);
45 vdebug(report, fmt, ap); 45 vdebugf(report, fmt, ap);
46 va_end(ap); 46 va_end(ap);
47 } 47 }
48 48
49 void 49 void
50 vdebug(struct debug_report *report, const char *fmt, va_list ap) 50 vdebugf(struct debug_report *report, const char *fmt, va_list ap)
51 { 51 {
52 assert(report); 52 assert(report);
53 assert(fmt); 53 assert(fmt);
54 54
55 if (!debug_options.enable) 55 if (!debug_options.enable)