Re:The Use of assert() in SQLite
by FrozenVoid on Friday April 26, 2019 @11:04PM
(#19763512)
For reference, they use this code instead of assert:
[ Parent
| on HN ]
Re:The Use of assert() in SQLite
by bayareanative on Saturday April 27, 2019 @04:07AM
(#19764453)
ALWAYS and NEVER don't pass-through their values consistently as claimed in debug builds, they pass through truthiness instead, with actual values in release builds. Perhaps this would be better for debug builds:
#define ALWAYS(X) (assert(X), (X))
#define NEVER(X) (assert(!(X)), (X))
Re:The Use of assert() in SQLite
by pawelmurias on Saturday April 27, 2019 @04:47AM
(#19764575)
That would duplicate X
Re:The Use of assert() in SQLite
by ahaferburg on Saturday April 27, 2019 @08:17AM
(#19765156)
In addition to, not instead of.