mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
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
This commit is contained in:
parent
37db0db4ac
commit
d400edea99
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user