summaryrefslogtreecommitdiffstats
path: root/base/logging.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-29 21:25:14 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-29 21:25:14 +0000
commit2f4e9a6fee762fa6ef4fd09fab2a12e6c8d622cf (patch)
treed2570559815611a7e4e9b5d696e8d5a773eea1ec /base/logging.h
parentbabf82955ac931f29c2e2a2c29aed1ad1ed49729 (diff)
downloadchromium_src-2f4e9a6fee762fa6ef4fd09fab2a12e6c8d622cf.zip
chromium_src-2f4e9a6fee762fa6ef4fd09fab2a12e6c8d622cf.tar.gz
chromium_src-2f4e9a6fee762fa6ef4fd09fab2a12e6c8d622cf.tar.bz2
[clang] Fixed clang compile failure introduced by 60976.
Put GetVlogLevelHelper definition before GetVlogLevel definition. gcc/msvc is fine with this, but not clang (correctly). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3525006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.h')
-rw-r--r--base/logging.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/logging.h b/base/logging.h
index 72f7274..19b2232 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -212,13 +212,14 @@ int GetMinLogLevel();
// Gets the current vlog level for the given file (usually taken from
// __FILE__).
+
+// Note that |N| is the size *with* the null terminator.
+int GetVlogLevelHelper(const char* file_start, size_t N);
+
template <size_t N>
int GetVlogLevel(const char (&file)[N]) {
return GetVlogLevelHelper(file, N);
}
-// Note that |N| is the size *with* the null terminator.
-int GetVlogLevelHelper(const char* file_start, size_t N);
-
// Sets the log filter prefix. Any log message below LOG_ERROR severity that
// doesn't start with this prefix with be silently ignored. The filter defaults
// to NULL (everything is logged) if this function is not called. Messages