From 3f95974e616ab7d0a3dcb38eb3b6ca7cd0b600af Mon Sep 17 00:00:00 2001 From: Neo <321592+Neo-Desktop@users.noreply.github.com> Date: Sun, 4 Jun 2023 00:50:41 -0700 Subject: [PATCH] disable asserts globally unless DEBUG is defined --- src/confid.cpp | 2 -- src/header.h | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/confid.cpp b/src/confid.cpp index 50b0a5d..69d7332 100644 --- a/src/confid.cpp +++ b/src/confid.cpp @@ -4,8 +4,6 @@ #include "header.h" -#define assert(x) /*nothing*/ - typedef int64_t i64; typedef uint64_t ui64; diff --git a/src/header.h b/src/header.h index 44a5b48..61d5d6d 100644 --- a/src/header.h +++ b/src/header.h @@ -5,11 +5,17 @@ #ifndef WINDOWSXPKG_HEADER_H #define WINDOWSXPKG_HEADER_H +#ifdef DEBUG #include +#else +#define assert(x) /* nothing */ +#endif + #include #include #include #include + #include #include #include