mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
11439eabfc
Summary: Trivial. Apparently, `DEBUG` is non-standard feature and using `assert` with `DEBUG` is practically asking for bugs. So, if your `assert` relies on some variable which is only defined when `DEBUG` is set, it's easy to get invalid code because NDEBUG and DEBUG can be unsync. So, we have to use clunky double negative `#ifndef NDEBUG` everywhere where we used DEBUG. Reviewed By: JoshuaGross Differential Revision: D15031328 fbshipit-source-id: 036f573e68925741ca46384261885766c87db1e3