Index: webrtc/base/task.cc |
diff --git a/webrtc/base/task.cc b/webrtc/base/task.cc |
index bdf8f1df03e8c257548b82bd51df23247fb812b6..b09ced12b4a239b8aa27f189eebe1a1b42d75c4f 100644 |
--- a/webrtc/base/task.cc |
+++ b/webrtc/base/task.cc |
@@ -68,7 +68,7 @@ void Task::Start() { |
void Task::Step() { |
if (done_) { |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
// we do not know how !blocked_ happens when done_ - should be impossible. |
// But it causes problems, so in retail build, we force blocked_, and |
// under debug we assert. |
@@ -88,7 +88,7 @@ void Task::Step() { |
// SignalDone(); |
Stop(); |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
// verify that stop removed this from its parent |
ASSERT(!parent()->IsChildTask(this)); |
#endif |
@@ -125,7 +125,7 @@ void Task::Step() { |
// SignalDone(); |
Stop(); |
-#if _DEBUG |
+#if !defined(NDEBUG) |
// verify that stop removed this from its parent |
ASSERT(!parent()->IsChildTask(this)); |
#endif |
@@ -150,7 +150,7 @@ void Task::Abort(bool nowake) { |
// "done_" is set before calling "Stop()" to ensure that this code |
// doesn't execute more than once (recursively) for the same task. |
Stop(); |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
// verify that stop removed this from its parent |
ASSERT(!parent()->IsChildTask(this)); |
#endif |