diff options
Diffstat (limited to 'meowpp/debug/assert.nodebug_test.cpp')
-rw-r--r-- | meowpp/debug/assert.nodebug_test.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meowpp/debug/assert.nodebug_test.cpp b/meowpp/debug/assert.nodebug_test.cpp new file mode 100644 index 0000000..588b874 --- /dev/null +++ b/meowpp/debug/assert.nodebug_test.cpp @@ -0,0 +1,22 @@ +#include <cstdio> + +#define MEOWPP_NODEBUG + +#define MEOWPP_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; +} |