-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdebug.h
40 lines (31 loc) · 962 Bytes
/
debug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#define NAMESPACE_DEBUG debug
#define NAMESPACE_DEBUG_START namespace debug {
#define NAMESPACE_DEBUG_END }
#include "cwds/debug.h"
#ifdef CWDEBUG
#ifdef DEBUG_THREADPOOL_COLORS
// We use colors for debug output.
#include "threadpool/debug_colors.h"
#endif
// The xml submodule doesn't use utils.
#ifdef HAVE_UTILS_CONFIG_H
#include "utils/print_using.h"
#include "utils/QuotedList.h"
namespace libcwd {
// Allow using print_using and QuotedList inside Dout without the utils:: prefix.
using utils::print_using;
using utils::QuotedList;
} // namespace libcwd
// Add support for classes with a print_on method, defined in global namespace.
#include "utils/has_print_on.h"
// Add catch all for global namespace.
using utils::has_print_on::operator<<;
#endif // HAVE_UTILS_CONFIG_H
#ifndef DOXYGEN
NAMESPACE_DEBUG_CHANNELS_START
extern channel_ct vulkan;
extern channel_ct shaderresource;
NAMESPACE_DEBUG_CHANNELS_END
#endif
#endif // CWDEBUG