Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_fill_sanity_checks.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef __KIS_FILL_SANITY_CHECKS_H
8
#define __KIS_FILL_SANITY_CHECKS_H
9
10
#define ENABLE_FILL_SANITY_CHECKS
11
//#define ENABLE_CHECKS_FOR_TESTING
12
13
#ifdef ENABLE_FILL_SANITY_CHECKS
14
15
#ifdef ENABLE_CHECKS_FOR_TESTING
16
#include <stdexcept>
17
#define SANITY_ASSERT_MSG(cond, msg) ((!(cond)) ? throw std::invalid_argument(msg) : qt_noop())
18
#else
19
#define SANITY_ASSERT_MSG(cond, msg) KIS_SAFE_ASSERT_RECOVER_NOOP((cond))
20
#endif
/* ENABLE_CHECKS_FOR_TESTING */
21
22
#else
23
24
#define SANITY_ASSERT_MSG(cond, msg)
25
26
#endif
/* ENABLE_FILL_SANITY_CHECKS */
27
28
29
#endif
/* __KIS_FILL_SANITY_CHECKS_H */
libs
image
floodfill
kis_fill_sanity_checks.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52