Commits


Matt Topol authored and GitHub committed de4936d8eb7
GH-35760: [C++] C Data Interface helpers should also run checks in non-debug mode (#36215) ### What changes are included in this PR? Replaced `assert`s in the `Arrow*Release` methods with a macro which outputs to `stderr` and calls `std::abort` directly with a message. This way the check still happens in release mode. The `ARROW_CHECK*` macros require C++ and this is intended to be a C file which others can vendor. ### Are there any user-facing changes? Instead of only failing in debug mode, now these release methods will fail if the release callback fails to set the `release` member to `null` even in release mode. Leading to potential calls to `std::abort` that weren't previously occurring. * Closes: #35760 Lead-authored-by: Matt Topol <zotthewizard@gmail.com> Co-authored-by: Antoine Pitrou <antoine@python.org> Co-authored-by: Antoine Pitrou <pitrou@free.fr> Signed-off-by: Antoine Pitrou <antoine@python.org>