diff options
author | drh <> | 2021-10-08 18:15:50 +0000 |
---|---|---|
committer | drh <> | 2021-10-08 18:15:50 +0000 |
commit | b18b3df1da599c6e4764e04abe13963f11eeb075 (patch) | |
tree | d3cac67f0e9ec85aa89303c5eccb532fc9881545 /src/sqliteInt.h | |
parent | 15b5411a67d4ce4b9b9ddb43e26f3f7dbcac8407 (diff) | |
download | sqlite-b18b3df1da599c6e4764e04abe13963f11eeb075.tar.gz sqlite-b18b3df1da599c6e4764e04abe13963f11eeb075.zip |
Further to the previous check-in, remove the "harmless()" macro definition as
it is no longer used.
FossilOrigin-Name: b8c9a54664a87ac464b413390572c3feb912e1efc9c8a78c61f1b370e2165c05
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 67a50e836..d1885ebc6 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -504,26 +504,6 @@ #endif /* -** The harmless(X) macro indicates that expression X is usually false -** but can be true without causing any problems, but we don't know of -** any way to cause X to be true. -** -** In debugging and testing builds, this macro will abort if X is ever -** true. In this way, developers are alerted to a possible test case -** that causes X to be true. If a harmless macro ever fails, that is -** an opportunity to change the macro into a testcase() and add a new -** test case to the test suite. -** -** For normal production builds, harmless(X) is a no-op, since it does -** not matter whether expression X is true or false. -*/ -#ifdef SQLITE_DEBUG -# define harmless(X) assert(!(X)); -#else -# define harmless(X) -#endif - -/* ** Some conditionals are optimizations only. In other words, if the ** conditionals are replaced with a constant 1 (true) or 0 (false) then ** the correct answer is still obtained, though perhaps not as quickly. |