diff options
author | dan <Dan Kennedy> | 2021-10-30 17:30:48 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-10-30 17:30:48 +0000 |
commit | e7c23433fb77aa3741e6008d624039392f6af7d0 (patch) | |
tree | aae0e1a9d7fbca33f1de6bb46b573e16f20dfd58 /src/sqliteInt.h | |
parent | 60a2fc8244db40752c7b8d09ea3e8432b80bed03 (diff) | |
parent | e4e1af5efb91767192cd440ebd7ec7999f6751f4 (diff) | |
download | sqlite-e7c23433fb77aa3741e6008d624039392f6af7d0.tar.gz sqlite-e7c23433fb77aa3741e6008d624039392f6af7d0.zip |
Merge trunk changes into this branch.
FossilOrigin-Name: 638c1b0c50229800067eb1ba29d829b4d6e008256c21a1f67b4ce4d19ea307b3
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index b50800c66..53e903318 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -435,11 +435,12 @@ ** is significant and used at least once. On switch statements ** where multiple cases go to the same block of code, testcase() ** can insure that all cases are evaluated. -** */ -#ifdef SQLITE_COVERAGE_TEST - void sqlite3Coverage(int); -# define testcase(X) if( X ){ sqlite3Coverage(__LINE__); } +#if defined(SQLITE_COVERAGE_TEST) || defined(SQLITE_DEBUG) +# ifndef SQLITE_AMALGAMATION + extern unsigned int sqlite3CoverageCounter; +# endif +# define testcase(X) if( X ){ sqlite3CoverageCounter += (unsigned)__LINE__; } #else # define testcase(X) #endif |