src/pEpEngine.c
branchsync
changeset 4129 f5db0b647d54
parent 4128 4501cadac721
parent 4127 2fb3ecbf7c42
child 4134 7d55c23d5bd4
     1.1 --- a/src/pEpEngine.c	Tue Oct 22 11:17:01 2019 +0200
     1.2 +++ b/src/pEpEngine.c	Tue Oct 22 11:17:27 2019 +0200
     1.3 @@ -11,8 +11,7 @@
     1.4  #include <time.h>
     1.5  #include <stdlib.h>
     1.6  
     1.7 -#define _PEP_SQLITE_DEBUG 0
     1.8 -#if _PEP_SQLITE_DEBUG
     1.9 +#ifdef _PEP_SQLITE_DEBUG
    1.10  #include <sqlite3.h>
    1.11  #endif
    1.12  
    1.13 @@ -42,7 +41,7 @@
    1.14      }
    1.15  }
    1.16  
    1.17 -#if _PEP_SQLITE_DEBUG
    1.18 +#ifdef _PEP_SQLITE_DEBUG
    1.19  int sql_trace_callback (unsigned trace_constant, 
    1.20                          void* context_ptr,
    1.21                          void* P,
    1.22 @@ -875,7 +874,7 @@
    1.23          goto pEp_error;
    1.24      }
    1.25      
    1.26 -#if _PEP_SQLITE_DEBUG    
    1.27 +#ifdef _PEP_SQLITE_DEBUG    
    1.28      sqlite3_config(SQLITE_CONFIG_LOG, errorLogCallback, NULL);
    1.29  #endif
    1.30  
    1.31 @@ -906,7 +905,7 @@
    1.32  
    1.33      sqlite3_busy_timeout(_session->db, BUSY_WAIT_TIME);
    1.34  
    1.35 -#if _PEP_SQLITE_DEBUG
    1.36 +#ifdef _PEP_SQLITE_DEBUG
    1.37      sqlite3_trace_v2(_session->db, 
    1.38          SQLITE_TRACE_STMT | SQLITE_TRACE_ROW | SQLITE_TRACE_CLOSE,
    1.39          sql_trace_callback,