-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.h
More file actions
45 lines (33 loc) · 858 Bytes
/
debug.h
File metadata and controls
45 lines (33 loc) · 858 Bytes
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
41
42
43
44
45
//
// Created by Owner on 2024/02/07.
//
#ifndef NEWDIRECTORY_DEBUG_H
#define NEWDIRECTORY_DEBUG_H
// DEBUGが未定義の場合、デフォルトで無効になるように設定
#define DEBUG 1
// DEBUGモードが有効な場合にのみデバッグ出力を有効にする
#ifdef DEBUG
#define DEBUG_COUT(x) std::cout << x << std::endl
#else
#define DEBUG_COUT(x)
#endif
//#define DEBUG1 1
// DEBUGモードが有効な場合にのみデバッグ出力を有効にする
#ifdef DEBUG1
#define DEBUG_COUT1(x) std::cout << x << std::endl
#else
#define DEBUG_COUT1(x)
#endif
//#define DEBUG2 1
#ifdef DEBUG2
#define DEBUG_COUT2(x) std::cout << x << std::endl
#else
#define DEBUG_COUT2(x)
#endif
//#define DEBUG3 1
#ifdef DEBUG3
#define DEBUG_COUT3(x) std::cout << x << std::endl
#else
#define DEBUG_COUT3(x)
#endif
#endif //NEWDIRECTORY_DEBUG_H