FireSTARR
Loading...
Searching...
No Matches
debug_settings.h
1/* Copyright (c) Queen's Printer for Ontario, 2020. */
2/* Copyright (c) His Majesty the King in Right of Canada as represented by the Minister of Natural Resources, 2024-2025. */
3
4/* SPDX-License-Identifier: AGPL-3.0-or-later */
5
6#pragma once
7
8// if in debug mode then set everything, otherwise uncomment turning things off if trying to debug specific things
9#define DEBUG_DIRECTIONS
10#define DEBUG_FUEL_VARIABLE
11#define DEBUG_FWI_WEATHER
12#define DEBUG_GRIDS
13#define DEBUG_POINTS
14#define DEBUG_PROBABILITY
15#define DEBUG_SIMULATION
16#define DEBUG_STATISTICS
17// #define DEBUG_WEATHER
18// // use this for trying to troubleshoot specific problems short-term
19// #define DEBUG_TEMPORARY
20
21#ifdef NDEBUG
22
23#undef DEBUG_DIRECTIONS
24#undef DEBUG_FUEL_VARIABLE
25#undef DEBUG_FWI_WEATHER
26#undef DEBUG_GRIDS
27#undef DEBUG_POINTS
28#undef DEBUG_PROBABILITY
29#undef DEBUG_SIMULATION
30#undef DEBUG_STATISTICS
31#undef DEBUG_WEATHER
32
33#endif
34
35#if not(defined(NDEBUG)) || defined(DEBUG_DIRECTIONS) || defined(DEBUG_FUEL_VARIABLE) || defined(DEBUG_FWI_WEATHER) || defined(DEBUG_GRIDS) || defined(DEBUG_POINTS) || defined(DEBUG_PROBABILITY) || defined(DEBUG_SIMULATION) || defined(DEBUG_STATISTICS) || defined(DEBUG_WEATHER)
36#define DEBUG_ANY
37#endif
38
39namespace fs::debug
40{
41void show_debug_settings();
42}