diff options
author | ubq323 <ubq323@ubq323.website> | 2022-10-28 01:27:58 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-10-28 01:27:58 +0100 |
commit | 612ae13c83235092d100b8ee86c5b7425aa36c36 (patch) | |
tree | 904712891db67a502dc7324ad602a11d5a6f9132 /conf.h | |
parent | c524506e04927a39648d47ba55af4fdff32faab6 (diff) |
move debug macros to a different header file
Diffstat (limited to 'conf.h')
-rw-r--r-- | conf.h | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -1,10 +1,6 @@ #ifndef conf_h_INCLUDED #define conf_h_INCLUDED -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - #ifdef LOCAL #define HOST "0.0.0.0" #define PORT "6971" @@ -17,20 +13,6 @@ #define SOCKETGROUP "apionet" #endif -#ifdef DEBUG - #define DP(x) puts(x) - #define DPn(name,x,len) \ - do { \ - char *__xxx = strndup(x,len); \ - printf(name " [%s]\n",__xxx); \ - free(__xxx); \ - } while (0) - #define DPf(...) fprintf(stderr,__VA_ARGS__) -#else - #define DP(x) - #define DPn(n,x,l) - #define DPf(...) -#endif #define NICK "Bee" #define USERNAME "apiobot" |