diff options
author | tfarina <tfarina@chromium.org> | 2015-10-30 16:08:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-30 23:08:54 +0000 |
commit | a41ab9326c8f0f7eb738e5d51a239a2b9e276361 (patch) | |
tree | 3366e216ef79b25b8b9ea91709757d1fd657cf77 /webrtc/base/opensslidentity.cc | |
parent | 5c3da4b6e9bdc787a3c1f25c0ff0c16a4271fd26 (diff) | |
download | webrtc-a41ab9326c8f0f7eb738e5d51a239a2b9e276361.tar.gz |
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}
Diffstat (limited to 'webrtc/base/opensslidentity.cc')
-rw-r--r-- | webrtc/base/opensslidentity.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webrtc/base/opensslidentity.cc b/webrtc/base/opensslidentity.cc index feda6744f0..7894b4887c 100644 --- a/webrtc/base/opensslidentity.cc +++ b/webrtc/base/opensslidentity.cc @@ -186,7 +186,7 @@ void OpenSSLKeyPair::AddReference() { #endif } -#ifdef _DEBUG +#if !defined(NDEBUG) // Print a certificate to the log, for debugging. static void PrintCert(X509* x509) { BIO* temp_memory_bio = BIO_new(BIO_s_mem()); @@ -215,7 +215,7 @@ OpenSSLCertificate* OpenSSLCertificate::Generate( LogSSLErrors("Generating certificate"); return NULL; } -#ifdef _DEBUG +#if !defined(NDEBUG) PrintCert(x509); #endif OpenSSLCertificate* ret = new OpenSSLCertificate(x509); |