aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp_unittest/debug/assert.debug.cpp
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-09-24 13:37:42 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-09-29 16:55:57 +0800
commit8b76fbb408f8eedab24195655c45c891af01eaab (patch)
tree414d7fc87885cb77e181a3ab99e334b837621036 /meowpp_unittest/debug/assert.debug.cpp
parentef9af0d577c3a6b5d11fdeed7a9149d09973171b (diff)
downloadmeow-8b76fbb408f8eedab24195655c45c891af01eaab.tar
meow-8b76fbb408f8eedab24195655c45c891af01eaab.tar.gz
meow-8b76fbb408f8eedab24195655c45c891af01eaab.tar.bz2
meow-8b76fbb408f8eedab24195655c45c891af01eaab.tar.lz
meow-8b76fbb408f8eedab24195655c45c891af01eaab.tar.xz
meow-8b76fbb408f8eedab24195655c45c891af01eaab.tar.zst
meow-8b76fbb408f8eedab24195655c45c891af01eaab.zip
Big change, detail see README.
Diffstat (limited to 'meowpp_unittest/debug/assert.debug.cpp')
-rw-r--r--meowpp_unittest/debug/assert.debug.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/meowpp_unittest/debug/assert.debug.cpp b/meowpp_unittest/debug/assert.debug.cpp
new file mode 100644
index 0000000..7514c4c
--- /dev/null
+++ b/meowpp_unittest/debug/assert.debug.cpp
@@ -0,0 +1,21 @@
+#include <cstdio>
+
+#define MEOWPP_DEBUG_ASSERT_TESTING
+
+namespace test {
+
+void abort() {
+ printf("Do abort()\n");
+}
+
+}
+
+#include <meowpp/debug/assert.h>
+
+using namespace meow;
+
+int main() {
+ Assert(1 == 1, "hi");
+ Assert(1 == 0, "no!!!%s %d", "bla", 13);
+ return 0;
+}