mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-10-05 19:16:54 +08:00
Now that arena has moved from CHECK(0) to LOG(FATAL), change
the opensource shims to be able to compile that. This is a bit of a hack. R=chandlerc DELTA=5 (5 added, 0 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3313
This commit is contained in:
parent
703d401961
commit
008949d389
|
@ -103,6 +103,11 @@ inline To down_cast(From* f) { // so we only accept pointers
|
||||||
#define EXPECT_FALSE(cond) CHECK(!(cond))
|
#define EXPECT_FALSE(cond) CHECK(!(cond))
|
||||||
#define EXPECT_STREQ(a, b) CHECK(strcmp(a, b) == 0)
|
#define EXPECT_STREQ(a, b) CHECK(strcmp(a, b) == 0)
|
||||||
#define ASSERT_TRUE(cond) EXPECT_TRUE(cond)
|
#define ASSERT_TRUE(cond) EXPECT_TRUE(cond)
|
||||||
|
// LOG(FATAL) is an alias for CHECK(FALSE). We define FATAL, but no
|
||||||
|
// other value that is reasonable inside LOG(), so the compile will
|
||||||
|
// fail if someone tries to use LOG(DEBUG) or the like.
|
||||||
|
#define LOG(x) INTERNAL_DO_LOG_ ## x
|
||||||
|
#define INTERNAL_DO_LOG_FATAL CHECK(false)
|
||||||
|
|
||||||
// These are used only in debug mode.
|
// These are used only in debug mode.
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user