improve to libusefull_macros v0.3.2

This commit is contained in:
2025-04-28 13:07:13 +03:00
parent 3090f2c85e
commit 7b4ecde5fb
17 changed files with 87 additions and 76 deletions

View File

@@ -18,6 +18,7 @@
#ifdef EBUG
#include <stdio.h>
#include <string.h>
#include <unistd.h>
@@ -25,10 +26,11 @@
#define DEBUGLOG "DEBUG.log"
sl_log *debuglog = NULL;
sl_log_t *debuglog = NULL;
void makedebuglog(){
unlink(DEBUGLOG);
DBG("Create debug log file: " DEBUGLOG);
debuglog = sl_createlog(DEBUGLOG, LOGLEVEL_ANY, 0);
}