ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
quiet_log_start.hpp
1
// This file is part of the ACTS project.
2
//
3
// Copyright (C) 2016 CERN for the benefit of the ACTS project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9
// Make sure the logging macros are available
10
#include "detray/utils/logging.hpp"
11
12
// Allow to temporarily disable macro based logging.
13
// Note: Has to be followed up by an include of "quiet_log_end"!
14
#if defined(__GNUC__) && !defined(__IN_QUIET_LOG_SECTION__)
15
16
// TODO: Define a macro for this instead of using headers
17
#define __IN_QUIET_LOG_SECTION__
18
19
#pragma push_macro("DETRAY_VERBOSE_HOST")
20
#pragma push_macro("DETRAY_VERBOSE_DEVICE")
21
#pragma push_macro("DETRAY_VERBOSE_HOST_DEVICE")
22
#pragma push_macro("DETRAY_DEBUG_HOST")
23
#pragma push_macro("DETRAY_DEBUG_DEVICE")
24
#pragma push_macro("DETRAY_DEBUG_HOST_DEVICE")
25
26
#undef DETRAY_VERBOSE_HOST
27
#undef DETRAY_VERBOSE_DEVICE
28
#undef DETRAY_VERBOSE_HOST_DEVICE
29
#undef DETRAY_DEBUG_HOST
30
#undef DETRAY_DEBUG_DEVICE
31
#undef DETRAY_DEBUG_HOST_DEVICE
32
33
#define DETRAY_VERBOSE_HOST(x)
34
#define DETRAY_VERBOSE_DEVICE(x)
35
#define DETRAY_VERBOSE_HOST_DEVICE(x)
36
#define DETRAY_DEBUG_HOST(x)
37
#define DETRAY_DEBUG_DEVICE(x)
38
#define DETRAY_DEBUG_HOST_DEVICE(x)
39
40
#endif
Detray
core
include
detray
utils
quiet_log_start.hpp
Generated by
1.15.0