diff options
author | drh <drh@noemail.net> | 2015-04-29 00:35:07 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-29 00:35:07 +0000 |
commit | b4a91a9a8859fc021ec4d3de08eb49a257d62a14 (patch) | |
tree | 0ff342ec38f3fd7c86c5368864d896de21e7469b /src/main.c | |
parent | 0bdef92dc2836b4809892f766da8d1ea94dd7431 (diff) | |
parent | 5824d44babc81893534bcc1ded9d512da566f498 (diff) | |
download | sqlite-b4a91a9a8859fc021ec4d3de08eb49a257d62a14.tar.gz sqlite-b4a91a9a8859fc021ec4d3de08eb49a257d62a14.zip |
Improved support for OSTRACE on Windows.
FossilOrigin-Name: ca43812bde499a23244e2860d3ceddc97d29f09e
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index d9ee77fab..ff5a1061b 100644 --- a/src/main.c +++ b/src/main.c @@ -55,6 +55,18 @@ int sqlite3_libversion_number(void){ return SQLITE_VERSION_NUMBER; } */ int sqlite3_threadsafe(void){ return SQLITE_THREADSAFE; } +/* +** When compiling the test fixture or with debugging enabled (on Win32), +** this variable being set to non-zero will cause OSTRACE macros to emit +** extra diagnostic information. +*/ +#ifdef SQLITE_HAVE_OS_TRACE +# ifndef SQLITE_DEBUG_OS_TRACE +# define SQLITE_DEBUG_OS_TRACE 0 +# endif + int sqlite3OSTrace = SQLITE_DEBUG_OS_TRACE; +#endif + #if !defined(SQLITE_OMIT_TRACE) && defined(SQLITE_ENABLE_IOTRACE) /* ** If the following function pointer is not NULL and if @@ -1194,7 +1206,7 @@ void sqlite3RollbackAll(sqlite3 *db, int tripCode){ ** Return a static string containing the name corresponding to the error code ** specified in the argument. */ -#if (defined(SQLITE_DEBUG) && SQLITE_OS_WIN) || defined(SQLITE_TEST) +#if defined(SQLITE_NEED_ERR_NAME) const char *sqlite3ErrName(int rc){ const char *zName = 0; int i, origRc = rc; |