aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-08-12 13:31:43 +0000
committerstephan <stephan@noemail.net>2024-08-12 13:31:43 +0000
commit57a0af406e66af40b4f0d4235d25155f80046db2 (patch)
tree4f50fd11858d7c92efccdeac7923c874434fccab /src/sqliteInt.h
parentd35a69a8da0a5a5c54823df540f0217c1601816b (diff)
parent8c411f7fceffe287b5f94cf449550ee5d6c11601 (diff)
downloadsqlite-57a0af406e66af40b4f0d4235d25155f80046db2.tar.gz
sqlite-57a0af406e66af40b4f0d4235d25155f80046db2.zip
Merge current trunk into this branch.
FossilOrigin-Name: 900a593ddf51eebddb70e2e9ab16abe4911f58f23e574e88ed340a919b8f16b6
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 6a92befe0..dca5bb150 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2914,9 +2914,15 @@ struct AggInfo {
** assignAggregateRegisters() that computes the value of pAggInfo->iFirstReg.
** The assert()s that are part of this macro verify that constraint.
*/
+#ifndef NDEBUG
#define AggInfoColumnReg(A,I) (assert((A)->iFirstReg),(A)->iFirstReg+(I))
#define AggInfoFuncReg(A,I) \
(assert((A)->iFirstReg),(A)->iFirstReg+(A)->nColumn+(I))
+#else
+#define AggInfoColumnReg(A,I) ((A)->iFirstReg+(I))
+#define AggInfoFuncReg(A,I) \
+ ((A)->iFirstReg+(A)->nColumn+(I))
+#endif
/*
** The datatype ynVar is a signed integer, either 16-bit or 32-bit.