From f12e596a27f6a1df1b4ccd52f9b1b8244bad42bb Mon Sep 17 00:00:00 2001 From: "cpu@chromium.org" Date: Tue, 21 May 2013 01:42:10 +0000 Subject: 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 --- base/logging.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/logging.h') 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)) -- cgit v1.1