Samsung Internal API reference
2.0
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
assert.h
Go to the documentation of this file.
1
9
#ifndef ASSERT_H
10
#define ASSERT_H
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#include <
stdio.h
>
17
18
#include "
stdlib.h
"
19
29
#ifdef NDEBUG
30
# define assert(expr) (void)(0)
31
#else
32
33
# define __assert__(ex, f, l) \
34
do { \
35
if (!(ex)) { \
36
printf("Assertion '%s' failed in %s, line %d\n", #ex, f, l); \
37
abort(); \
38
} \
39
} while (0)
40
42
# define assert(expr) __assert__(expr, __FILE__, __LINE__)
43
#endif // NDEBUG
44
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif // ASSERT_H
50
stdio.h
Standard I/O.
stdlib.h
Standard library header.
assert.h
Generated by
1.8.11