diff options
Diffstat (limited to 'LIDAR/sdk/src/hal/assert.h')
| -rw-r--r-- | LIDAR/sdk/src/hal/assert.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LIDAR/sdk/src/hal/assert.h b/LIDAR/sdk/src/hal/assert.h new file mode 100644 index 0000000..37cfdd5 --- /dev/null +++ b/LIDAR/sdk/src/hal/assert.h @@ -0,0 +1,18 @@ +#ifndef _INFRA_HAL_ASSERT_H +#define _INFRA_HAL_ASSERT_H + +#ifdef WIN32 +#include <crtdbg.h> +#ifndef assert +#define assert(x) _ASSERT(x) +#endif +#elif defined(_AVR_) +#define assert(x) +#elif defined(__GNUC__) +#ifndef assert +#define assert(x) +#endif +#else +#error assert.h cannot identify your platform +#endif +#endif |
