Skip to content

Commit da73cca

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
ReactCommon/renderer/scheduler: Migrate uses of NDEBUG to REACT_NATIVE_DEBUG + react_native_assert
Summary: For better cross-platform consistency, migrate usages of NDEBUG to REACT_NATIVE_DEBUG. See flags.h for explanation. Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D26695253 fbshipit-source-id: b0ff02416ab208dfd71f71c2b3d83009f40be0a9
1 parent 88088b7 commit da73cca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#include "AsynchronousEventBeat.h"
99

10+
#include <react/debug/react_native_assert.h>
11+
1012
namespace facebook {
1113
namespace react {
1214

@@ -23,7 +25,7 @@ AsynchronousEventBeat::AsynchronousEventBeat(
2325
void AsynchronousEventBeat::activityDidChange(
2426
RunLoopObserver::Delegate const *delegate,
2527
RunLoopObserver::Activity activity) const noexcept {
26-
assert(delegate == this);
28+
react_native_assert(delegate == this);
2729
induce();
2830
}
2931

0 commit comments

Comments
 (0)