← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/LIDAR/sdk/src/hal/assert.h
blob: 37cfdd54df3f640710ec55f0b71d934fb4b90a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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