Arduino-GPIO
General Purpose Input/Output (GPIO) library for Arduino
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
assert.h
Go to the documentation of this file.
1
19
#ifndef ASSERT_H
20
#define ASSERT_H
21
30
#if defined(NDEBUG)
31
#define TRACE(expr) expr
32
#else
33
#define TRACE(expr) \
34
do { \
35
Serial.print(F(#expr "=")); \
36
Serial.println(expr); \
37
Serial.flush(); \
38
} while (0)
39
#endif
40
50
#if defined(NDEBUG)
51
#define ASSERT(expr) expr
52
#else
53
#define ASSERT(expr) \
54
do { \
55
if (!(expr)) { \
56
Serial.print(__LINE__); \
57
Serial.println(F(":assert:" #expr)); \
58
Serial.flush(); \
59
exit(0); \
60
} \
61
} while (0)
62
#endif
63
64
#endif
src
assert.h
Generated on Sat Oct 14 2017 16:03:22 for Arduino-GPIO by
1.8.11