Macro UAVCAN_ASSERT() instead of assert() (not used yet, see the next commit)

This commit is contained in:
Pavel Kirienko
2014-07-12 17:16:44 +04:00
parent 1042d09de5
commit cf19d86842
@@ -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
{