_NDEBUG is a typo for NDEBUG. Possibly confused with _DEBUG which is a
Visual Studio concept.
Include other instances as well in the repo.
Fixes: https://tracker.ceph.com/issues/71456
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit
36569bd2d4280640da4a950d5f5c9e0090c085a5)
-#ifndef _NDEBUG
+#ifndef NDEBUG
// The callbacks we define here will be called from the sanitizer runtime, but
// aren't referenced from the Chrome executable. We must ensure that those
// callbacks are not sanitizer-instrumented, and that they aren't stripped by
SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() {
return kLSanDefaultSuppressions;
}
-#endif // ! _NDEBUG
+#endif // !NDEBUG
// Just swap both pointers if we allocated on the heap
to->ptr_ = from->ptr_;
-#ifndef _NDEBUG
+#ifndef NDEBUG
// We don't need to null the pointer since we know that
// we don't own the data anymore through the vtable
// which is set to empty.
auto crc = ceph_crc32c(orig_crc, (unsigned char*)&len, sizeof(len));
crc = ceph_crc32c(crc, (unsigned char*)data.data(), data.length());
-#ifndef _NDEBUG
+#ifndef NDEBUG
// let's verify the compatibility but, due to performance penalty,
// only in debug builds.
ceph::bufferlist bl;