mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Use DCHECK_IS_ON() instead of !NDEBUG for debug logic (issue #1961)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#error Platform is not supported.
|
||||
#endif
|
||||
|
||||
#include "include/base/cef_logging.h"
|
||||
#include "include/wrapper/cef_helpers.h"
|
||||
|
||||
#ifndef GL_BGR
|
||||
@@ -27,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
// DCHECK on gl errors.
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
#define VERIFY_NO_ERROR { \
|
||||
int _gl_error = glGetError(); \
|
||||
DCHECK(_gl_error == GL_NO_ERROR) << \
|
||||
|
Reference in New Issue
Block a user