MicrOS
assert.h
Go to the documentation of this file.
1 #ifndef ASSERT_H
2 #define ASSERT_H
3 
4 #include "stdio.h"
5 
7 
11 #define assert(expression) \
12  if (!(expression)) \
13  { \
14  fprintf(stderr, "Assertion failed (%s): %s at line %d", #expression, __FILE__, __LINE__); \
15  abort(); \
16  }
17 
18 #endif