Browse Source

Added getenv to debug macro

pull/547/head
EgorWeders 8 months ago
parent
commit
50fb908630
  1. 12
      src/goodbyedpi.h

12
src/goodbyedpi.h

@ -1,11 +1,11 @@
#define HOST_MAXLEN 253 #define HOST_MAXLEN 253
#define MAX_PACKET_SIZE 9016 #define MAX_PACKET_SIZE 9016
#ifndef DEBUG // #ifndef DEBUG
#define debug(...) do {} while (0) // #define debug(...) do {} while (0)
#else // #else
#define debug(...) printf(__VA_ARGS__) // #define debug(...) printf(__VA_ARGS__)
#endif // #endif
#define debug(...) if (getenv("DEBUG_GDPI")!=NULL) printf(__VA_ARGS__)
int main(int argc, char *argv[]); int main(int argc, char *argv[]);
void deinit_all(); void deinit_all();

Loading…
Cancel
Save