summaryrefslogtreecommitdiff
path: root/logs.c
blob: 01d93fcb887ddc73014fa3fe63147f854501ab72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdarg.h>
#include <stdio.h>

void _log(const char *fmt, ...)
{
#ifdef LOGS
    va_list ap;

    va_start(ap, fmt);

    vfprintf(stderr, fmt, ap);
    fputc('\n', stderr);

    va_end(ap);
#else
    (void) fmt;
#endif
}