src/pEp_internal.h
changeset 216 e949c98e45e5
parent 168 5ddaec401f66
child 229 313d152239bf
     1.1 --- a/src/pEp_internal.h	Tue Apr 21 15:40:18 2015 +0200
     1.2 +++ b/src/pEp_internal.h	Tue Apr 21 15:42:03 2015 +0200
     1.3 @@ -39,10 +39,6 @@
     1.4  #include <assert.h>
     1.5  #include <stdio.h>
     1.6  
     1.7 -#ifndef NDEBUG
     1.8 -#include <stdio.h>
     1.9 -#endif
    1.10 -
    1.11  #include "sqlite3.h"
    1.12  
    1.13  #define _EXPORT_PEP_ENGINE_DLL
    1.14 @@ -93,3 +89,10 @@
    1.15  PEP_STATUS init_transport_system(PEP_SESSION session, bool in_first);
    1.16  void release_transport_system(PEP_SESSION session, bool out_last);
    1.17  
    1.18 +#ifdef NDEBUG
    1.19 +#define DEBUG_LOG(TITLE, ENTITY, DESC)
    1.20 +#else
    1.21 +#define DEBUG_LOG(TITLE, ENTITY, DESC) \
    1.22 +    log_event(session, (TITLE), (ENTITY), (DESC), "debug");
    1.23 +#endif
    1.24 +