-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathprecomp.h
39 lines (29 loc) · 820 Bytes
/
precomp.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
#include <ntifs.h>
#define _DOKAN_SYS
#include "dokan.h"
/*
When the compiler sees a line like this:
chMSG(Fix this later);
it outputs a line like this:
c:\CD\CmnHdr.h(82):Fix this later
You can easily jump directly to this line and examine the surrounding code.
*/
#define chSTR2(x) #x
#define chSTR(x) chSTR2(x)
#define chMSG(desc) message(__FILE__ "("chSTR(__LINE__)"): --------" #desc "--------")
#define chFixLater message(__FILE__ "("chSTR(__LINE__)"): Fix this later")
#define FixLater \
do { \
__pragma(chFixLater) \
__pragma (warning(push)) \
__pragma (warning(disable:4127)) \
} while(0) \
__pragma (warning(pop))
#define MSG(desc) \
do { \
__pragma(chMSG(desc)) \
__pragma (warning(push)) \
__pragma (warning(disable:4127)) \
} while(0) \
__pragma (warning(pop))
//#define _LOG_ENABLED