Switch usage of _DEBUG macro to NDEBUG.

http://stackoverflow.com/a/29253284/5237416

BUG=None
R=tommi@webrtc.org
NOPRESUBMIT=true

Review URL: https://codereview.webrtc.org/1429513004

Cr-Commit-Position: refs/heads/master@{#10468}
This commit is contained in:
tfarina
2015-10-30 16:08:48 -07:00
committed by Commit bot
parent 5c3da4b6e9
commit a41ab9326c
30 changed files with 92 additions and 92 deletions

View File

@ -23,7 +23,7 @@ TaskRunner::TaskRunner()
: TaskParent(this),
next_timeout_task_(NULL),
tasks_running_(false)
#ifdef _DEBUG
#if !defined(NDEBUG)
, abort_count_(0),
deleting_task_(NULL)
#endif
@ -88,11 +88,11 @@ void TaskRunner::InternalRunTasks(bool in_destructor) {
need_timeout_recalc = true;
}
#ifdef _DEBUG
#if !defined(NDEBUG)
deleting_task_ = task;
#endif
delete task;
#ifdef _DEBUG
#if !defined(NDEBUG)
deleting_task_ = NULL;
#endif
tasks_[i] = NULL;