-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnl_debug.h
52 lines (37 loc) · 1.29 KB
/
nl_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
41
42
43
44
45
46
47
48
49
#ifndef __NL_DEBUG_H__
#define __NL_DEBUG_H__
#include "nl_cfg.h"
#ifdef __cplusplus
extern "C"{
#endif
#ifndef NL_LOG_BUF_SIZE
#define NL_LOG_BUF_SIZE (256)
#endif
#ifndef NL_DEBUG_RTCM
#define NL_DEBUG_RTCM 0
#endif
#ifndef NL_DEBUG_GNSS
#define NL_DEBUG_GNSS 0
#endif
#ifndef NL_DEBUG_RCV
#define NL_DEBUG_RCV 0
#endif
#ifndef NL_DEBUG_IMU
#define NL_DEBUG_IMU 0
#endif
#define NL_DEBUG_LOG(type, message) \
do \
{ \
if (type) \
NL_TRACE message; \
} \
while (0)
#define NL_ASSERT(EX) \
if (!(EX)) \
{ \
nl_assert_handler(#EX, __FUNCTION__, __LINE__); \
}
#ifdef __cplusplus
}
#endif
#endif