SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 16 C++

Respect NDEBUG for asserts even though Ruby 3+ pollutes it.

Prior to this CL, asserts have no effect for Ruby 3+, because Ruby unconditionally defines `NDEBUG`: https://bugs.ruby-lang.org/issues/18777

We work around this by doing `#undef NDEBUG` right after including Ruby, if `NDEBUG` was not previously defined.

PiperOrigin-RevId: 535359088
J
Joshua Haberman committed
b2a520f693702c8dd74cf5c8d0b3d93c7b23b603
Parent: 5101674
Committed by Copybara-Service <copybara-worker@google.com> on 5/25/2023, 8:19:23 PM