Rev 2479 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2479 | Rev 2592 | ||
|---|---|---|---|
| Line 44... | Line 44... | ||
| 44 | * |
44 | * |
| 45 | * @param expr Expression which is expected to be true. |
45 | * @param expr Expression which is expected to be true. |
| 46 | * |
46 | * |
| 47 | */ |
47 | */ |
| 48 | 48 | ||
| - | 49 | #include <stdio.h> |
|
| 49 | #include <stdlib.h> |
50 | #include <stdlib.h> |
| - | 51 | ||
| 50 | #ifndef NDEBUG |
52 | #ifndef NDEBUG |
| 51 | # define assert(expr) if (!(expr)) { printf("Assertion failed (%s) at file '%s', line %d.\n", #expr, __FILE__, __LINE__); abort();} |
53 | # define assert(expr) if (!(expr)) { printf("Assertion failed (%s) at file '%s', line %d.\n", #expr, __FILE__, __LINE__); abort();} |
| 52 | #else |
54 | #else |
| 53 | # define assert(expr) |
55 | # define assert(expr) |
| 54 | #endif |
56 | #endif |