From d400edea9912439e9ee05c07f63a0500d2e8ee5f Mon Sep 17 00:00:00 2001 From: "csilvers+ctemplate@google.com" Date: Thu, 15 Dec 2011 19:07:50 +0000 Subject: [PATCH] ctemplate defines a dummy version of LOG() in util.h. We need to override that version with a 'real' (but simplistic) version in template.cc. The other option would be to have a 'real' definition everywhere, but that's not necessary at this juncture. R=jad DELTA=2 (1 added, 0 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3980 --- src/template.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/template.cc b/src/template.cc index 35927ea..67ee8a4 100644 --- a/src/template.cc +++ b/src/template.cc @@ -82,9 +82,10 @@ #define AS_STR(x) AS_STR1(x) // A very simple logging system +#undef LOG // a non-working version is provided in base/util.h; redefine it static int kVerbosity = 0; // you can change this by hand to get vlogs #define LOG(level) std::cerr << #level ": " -#define VLOG(level) if (kVerbosity >= level) std::cerr << "V" #level ": " +#define VLOG(level) if (kVerbosity >= level) LOG(level) // TODO(csilvers): use our own tables for these? static bool ascii_isalnum(char c) {