HPCombi
High Performance Combinatorics in C++ using vector instructions v1.0.0
Loading...
Searching...
No Matches
debug.hpp
Go to the documentation of this file.
1//****************************************************************************//
2// Copyright (C) 2023-2024 James D. Mitchell <jdm3@st-andrews.ac.uk> //
3// Copyright (C) 2023-2024 Florent Hivert <Florent.Hivert@lisn.fr>, //
4// //
5// This file is part of HP-Combi <https://github.com/libsemigroups/HPCombi> //
6// //
7// HP-Combi is free software: you can redistribute it and/or modify it //
8// under the terms of the GNU General Public License as published by the //
9// Free Software Foundation, either version 3 of the License, or //
10// (at your option) any later version. //
11// //
12// HP-Combi is distributed in the hope that it will be useful, but WITHOUT //
13// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or //
14// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License //
15// for more details. //
16// //
17// You should have received a copy of the GNU General Public License along //
18// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
19//****************************************************************************//
20
21#ifndef HPCOMBI_DEBUG_HPP_
22#define HPCOMBI_DEBUG_HPP_
23
24#ifdef HPCOMBI_DEBUG
25#include <cassert>
26#define HPCOMBI_ASSERT(x) assert(x)
27#else
28#define HPCOMBI_ASSERT(x)
29#endif
30
31#endif // HPCOMBI_DEBUG_HPP_