1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Change all legacy instances of "#if SQLITE_DEBUG" to "#ifdef SQLITE_DEBUG" for

consistency.

FossilOrigin-Name: 670f10b24230863688270d12ac519609ade2302b
This commit is contained in:
drh
2017-02-13 13:35:55 +00:00
parent 30a5831c45
commit d879e3eb8d
9 changed files with 23 additions and 24 deletions

View File

@@ -418,7 +418,7 @@ int sqlite3MallocSize(void *p){
int sqlite3DbMallocSize(sqlite3 *db, void *p){
assert( p!=0 );
if( db==0 || !isLookaside(db,p) ){
#if SQLITE_DEBUG
#ifdef SQLITE_DEBUG
if( db==0 ){
assert( sqlite3MemdebugNoType(p, (u8)~MEMTYPE_HEAP) );
assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) );
@@ -479,7 +479,7 @@ void sqlite3DbFree(sqlite3 *db, void *p){
}
if( isLookaside(db, p) ){
LookasideSlot *pBuf = (LookasideSlot*)p;
#if SQLITE_DEBUG
#ifdef SQLITE_DEBUG
/* Trash all content in the buffer being freed */
memset(p, 0xaa, db->lookaside.sz);
#endif