mirror of
https://github.com/isfshax/isfshax.git
synced 2024-11-16 16:39:17 +01:00
16 lines
292 B
C
16 lines
292 B
C
|
#ifdef LOLSERIAL_DEBUG
|
||
|
|
||
|
extern void lolserial_lprint(char *str, int len);
|
||
|
|
||
|
void DEBUG(char *fmt, ...)
|
||
|
{
|
||
|
char str[256];
|
||
|
va_list va;
|
||
|
va_start(va, fmt);
|
||
|
vsnprintf(str, sizeof(str), fmt, va);
|
||
|
lolserial_lprint(str, sizeof(str));
|
||
|
va_end(va);
|
||
|
}
|
||
|
|
||
|
#endif /* LOLSERIAL_DEBUG */
|