blob: 900a4bd0004116cd41bbca391c9feda54765b02d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include "debug.h"
void debug(int lvl, int es, char* msg, ...) {
va_list ap;
va_start(ap, msg);
vprintf(msg, ap);
va_end(ap);
if (es != 0) exit(es);
}
|