From 2f4e9a6fee762fa6ef4fd09fab2a12e6c8d622cf Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Wed, 29 Sep 2010 21:25:14 +0000 Subject: [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 --- base/logging.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'base/logging.h') 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 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 -- cgit v1.1