If both MEMSYS3 and MEMSYS5 are enabled, than automatically disable MEMSYS3.

FossilOrigin-Name: ccc22e14dc5d910d632807f49484be54dc2fde83
This commit is contained in:
drh
2016-07-25 11:57:21 +00:00
parent 6fe4c184fb
commit 5d513ba08c
6 changed files with 46 additions and 43 deletions
+7 -3
View File
@@ -3440,11 +3440,15 @@ int sqlite3HeapNearlyFull(void);
# define sqlite3StackFree(D,P) sqlite3DbFree(D,P)
#endif
#ifdef SQLITE_ENABLE_MEMSYS3
const sqlite3_mem_methods *sqlite3MemGetMemsys3(void);
#endif
/* Do not allow both MEMSYS5 and MEMSYS3 to be defined together. If they
** are, disable MEMSYS3
*/
#ifdef SQLITE_ENABLE_MEMSYS5
const sqlite3_mem_methods *sqlite3MemGetMemsys5(void);
#undef SQLITE_ENABLE_MEMSYS3
#endif
#ifdef SQLITE_ENABLE_MEMSYS3
const sqlite3_mem_methods *sqlite3MemGetMemsys3(void);
#endif