Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Error.h
Go to the documentation of this file.
1
6
#pragma once
7
8
// These macros can end up in C code, so use the C logger.
9
#include <
logging/cs_CLogger.h
>
10
11
#ifdef NDEBUG
12
// For release version ignore asserts
13
#define assert(expr, message) \
14
if (!(expr)) { \
15
CLOGe("%s"
, message); \
16
}
17
18
#else
19
20
#include <
util/cs_Syscalls.h
>
21
22
#define assert(expr, message) \
23
if (!(expr)) { \
24
CLOGe("%s"
, message); \
25
_exit(1); \
26
}
27
28
#endif
cs_CLogger.h
cs_Syscalls.h
source
include
util
cs_Error.h
Generated by
1.9.5