Fix util.cpp missing

simplify_dma
F5OEO 2019-01-08 14:07:01 +00:00
rodzic 62259b6c75
commit 7e50948296
1 zmienionych plików z 19 dodań i 0 usunięć

19
src/util.cpp 100644
Wyświetl plik

@ -0,0 +1,19 @@
#include "util.h"
static int debug_level = 0;
void dbg_setlevel(int Level)
{
debug_level=Level;
}
void dbg_printf(int Level, const char *fmt, ...)
{
if (Level <= debug_level)
{
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
}
}