summaryrefslogtreecommitdiff
path: root/src/demangle_unittest.cc
diff options
context:
space:
mode:
author <shinichiro.hamaji@gmail.com>2010-01-20 07:39:18 +0000
committer <shinichiro.hamaji@gmail.com>2010-01-20 07:39:18 +0000
commitcb350102153cf25db31903b103ee6bf003cfa7c2 (patch)
tree305823b86264efe51fe25fc9e36a30e077736cfb /src/demangle_unittest.cc
parent327359662c7e320ca0891090647fd57949b9bad1 (diff)
downloadglog-cb350102153cf25db31903b103ee6bf003cfa7c2.tar.gz
glog-cb350102153cf25db31903b103ee6bf003cfa7c2.tar.bz2
glog-cb350102153cf25db31903b103ee6bf003cfa7c2.zip
Use GLOG_* environment variables even when gflags is installed.
Define GLOG_DEFINE_*, which checks if the GLOG_* environment variable is defined. If defined, GLOG_DEFINE_* passes the value and otherwise, it passes the original default value. In this way, GLOG_DEFINE_* macro uses the value specified by gflags first, then GLOG_* environment variables, and finally it uses the default value if neither of them are specified. git-svn-id: https://google-glog.googlecode.com/svn/trunk@76 eb4d4688-79bd-11dd-afb4-1d65580434c0
Diffstat (limited to 'src/demangle_unittest.cc')
-rw-r--r--src/demangle_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demangle_unittest.cc b/src/demangle_unittest.cc
index 02425d1..c07332a 100644
--- a/src/demangle_unittest.cc
+++ b/src/demangle_unittest.cc
@@ -41,7 +41,8 @@
#include "googletest.h"
#include "config.h"
-DEFINE_bool(demangle_filter, false, "Run demangle_unittest in filter mode");
+GLOG_DEFINE_bool(demangle_filter, false,
+ "Run demangle_unittest in filter mode");
using namespace std;
using namespace GOOGLE_NAMESPACE;