nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

debug.h (256B)


      1 
      2 #ifndef PROTOVERSE_DEBUG_H
      3 #define PROTOVERSE_DEBUG_H
      4 
      5 #include <stdio.h>
      6 
      7 #define unusual(...) fprintf(stderr, "UNUSUAL: " __VA_ARGS__)
      8 
      9 #ifdef DEBUG
     10 #define debug(...) printf(__VA_ARGS__)
     11 #else
     12 #define debug(...)
     13 #endif
     14 
     15 #endif /* PROTOVERSE_DEBUG_H */