From d2e91d74d50c925c2a4ca3ea4b35722797911bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 6 Aug 2023 22:08:34 +0200 Subject: [PATCH] add missing assert file --- myassert.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 myassert.h diff --git a/myassert.h b/myassert.h new file mode 100644 index 0000000..174f12f --- /dev/null +++ b/myassert.h @@ -0,0 +1,11 @@ +#ifndef DYNAMIC_PROGRAM_MYASSERT_H +#define DYNAMIC_PROGRAM_MYASSERT_H + +#ifdef NDEBUG +#define ASSERT(x) do { (void)sizeof(x);} while (0) +#else +#include +#define ASSERT(x) assert(x) +#endif + +#endif //DYNAMIC_PROGRAM_MYASSERT_H