aboutsummaryrefslogtreecommitdiff
path: root/include/benchmark
diff options
context:
space:
mode:
authorDominic Hamon <dma+github@stripysock.com>2014-10-31 21:54:55 -0700
committerDominic Hamon <dma+github@stripysock.com>2014-10-31 21:54:55 -0700
commita3b5e44c529996a3663ddf48a40e33cd0fe3fdf2 (patch)
treea78a47e1cf8e2d35d1cb72379e79ae7678c21ef6 /include/benchmark
parentd750144542de0f35321f066f03afc8d873122c6d (diff)
downloadgoogle-benchmark-a3b5e44c529996a3663ddf48a40e33cd0fe3fdf2.tar.gz
Remove CHECK_* from public API.
CHECK_* are now private and used internally in the library. The test uses have been replaced with asserts. Fixes #62.
Diffstat (limited to 'include/benchmark')
-rw-r--r--include/benchmark/macros.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/benchmark/macros.h b/include/benchmark/macros.h
index da408d4..b842bcc 100644
--- a/include/benchmark/macros.h
+++ b/include/benchmark/macros.h
@@ -35,17 +35,6 @@ char (&ArraySizeHelper(const T (&array)[N]))[N];
#define arraysize(array) (sizeof(ArraySizeHelper(array)))
-#define CHECK(b) \
- do { \
- if (!(b)) assert(false); \
- } while (0)
-#define CHECK_EQ(a, b) CHECK((a) == (b))
-#define CHECK_NE(a, b) CHECK((a) != (b))
-#define CHECK_GE(a, b) CHECK((a) >= (b))
-#define CHECK_LE(a, b) CHECK((a) <= (b))
-#define CHECK_GT(a, b) CHECK((a) > (b))
-#define CHECK_LT(a, b) CHECK((a) < (b))
-
//
// Prevent the compiler from complaining about or optimizing away variables
// that appear unused.