disable asserts globally unless DEBUG is defined

This commit is contained in:
Neo 2023-06-04 00:50:41 -07:00
parent 166a0b5df7
commit 3f95974e61
2 changed files with 6 additions and 2 deletions

View File

@ -4,8 +4,6 @@
#include "header.h" #include "header.h"
#define assert(x) /*nothing*/
typedef int64_t i64; typedef int64_t i64;
typedef uint64_t ui64; typedef uint64_t ui64;

View File

@ -5,11 +5,17 @@
#ifndef WINDOWSXPKG_HEADER_H #ifndef WINDOWSXPKG_HEADER_H
#define WINDOWSXPKG_HEADER_H #define WINDOWSXPKG_HEADER_H
#ifdef DEBUG
#include <cassert> #include <cassert>
#else
#define assert(x) /* nothing */
#endif
#include <cstdint> #include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <ctime> #include <ctime>
#include <random> #include <random>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>