Added NOLOG define so that -DNOLOG can be used to shut down debug logs when not using -NDEBUG (we still need our asserts in testing even when we don't want logs ;)
authorKrista Bennett <krista@pep-project.org>
Tue, 12 Sep 2017 19:17:44 +0200
changeset 2047a4d4320b09bc
parent 2043 fd40bf23930d
child 2048 4612060c1d49
child 2051 c5b75986b5ff
Added NOLOG define so that -DNOLOG can be used to shut down debug logs when not using -NDEBUG (we still need our asserts in testing even when we don't want logs ;)
src/pEp_internal.h
     1.1 --- a/src/pEp_internal.h	Tue Sep 12 16:55:21 2017 +0200
     1.2 +++ b/src/pEp_internal.h	Tue Sep 12 19:17:44 2017 +0200
     1.3 @@ -183,7 +183,7 @@
     1.4          size_t psize, char **ctext, size_t *csize
     1.5  );
     1.6  
     1.7 -#ifdef NDEBUG
     1.8 +#if defined(NDEBUG) || defined(NOLOG)
     1.9  #define DEBUG_LOG(TITLE, ENTITY, DESC)
    1.10  #else
    1.11  #ifdef ANDROID