summaryrefslogtreecommitdiffstats
path: root/base/logging.h
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 01:42:10 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 01:42:10 +0000
commitf12e596a27f6a1df1b4ccd52f9b1b8244bad42bb (patch)
tree01031d7a9dfe6d058ea30a2539f3d5c8f060a33f /base/logging.h
parent0bea112fc6e383d156f9ba73479dadb485d714ce (diff)
downloadchromium_src-f12e596a27f6a1df1b4ccd52f9b1b8244bad42bb.zip
chromium_src-f12e596a27f6a1df1b4ccd52f9b1b8244bad42bb.tar.gz
chromium_src-f12e596a27f6a1df1b4ccd52f9b1b8244bad42bb.tar.bz2
Remving global statics from the headers, so we can split-link.
The issue is that the split linker has issues with data exports vs function exports currently only function exports are supported. NOTRY=true TBR=brettw,jam TEST=none BUG=237249 Review URL: https://chromiumcodereview.appspot.com/15403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.h')
-rw-r--r--base/logging.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/logging.h b/base/logging.h
index 71596f0..55c9ebf 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -648,7 +648,8 @@ enum { DEBUG_MODE = ENABLE_DLOG };
#if defined(NDEBUG)
-BASE_EXPORT extern DcheckState g_dcheck_state;
+BASE_EXPORT DcheckState get_dcheck_state();
+BASE_EXPORT void set_dcheck_state(DcheckState state);
#if defined(DCHECK_ALWAYS_ON)
@@ -665,7 +666,7 @@ const LogSeverity LOG_DCHECK = LOG_FATAL;
#define COMPACT_GOOGLE_LOG_DCHECK COMPACT_GOOGLE_LOG_ERROR_REPORT
const LogSeverity LOG_DCHECK = LOG_ERROR_REPORT;
#define DCHECK_IS_ON() \
- ((::logging::g_dcheck_state == \
+ ((::logging::get_dcheck_state() == \
::logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS) && \
LOG_IS_ON(DCHECK))