mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-12 23:53:34 +08:00
Macro UAVCAN_ASSERT() instead of assert() (not used yet, see the next commit)
This commit is contained in:
@@ -99,6 +99,19 @@
|
||||
# define UAVCAN_IMPLEMENT_PLACEMENT_NEW 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Run time checks.
|
||||
* Resolves to the standard assert() by default.
|
||||
* Can be disabled completely.
|
||||
*/
|
||||
#ifndef UAVCAN_ASSERT
|
||||
# if UAVCAN_NO_ASSERTIONS
|
||||
# define UAVCAN_ASSERT(x)
|
||||
# else
|
||||
# define UAVCAN_ASSERT(x) assert(x)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user