BibleTime
btassert.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #if !defined(QT_NO_DEBUG) && !defined(NDEBUG)
16 #include <QtGlobal>
17 #define BT_ASSERT(...) ([&]{ Q_ASSERT(__VA_ARGS__); }())
18 #else
19 #include <cassert>
20 #define BT_ASSERT(...) assert(__VA_ARGS__)
21 #endif