diff --git a/README.md b/README.md index 4ebc819..f651750 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,11 @@ If you find the examples to be unclear or incorrect, please, open a ticket. - Refactor the transfer reassembly state machine to enhance its maintainability and robustness. +#### v3.1.2 + +- Allow redefinition of CANARD_ASSERT via the config header; + see [#219](https://github.com/OpenCyphal/libcanard/pull/219). + ### v3.0 - Update branding as [UAVCAN v1 is renamed to Cyphal](https://forum.opencyphal.org/t/uavcan-v1-is-now-cyphal/1622). diff --git a/libcanard/canard.c b/libcanard/canard.c index d4577bf..863de50 100644 --- a/libcanard/canard.c +++ b/libcanard/canard.c @@ -3,7 +3,6 @@ /// Author: Pavel Kirienko #include "canard.h" -#include "_canard_cavl.h" #include // --------------------------------------------- BUILD CONFIGURATION --------------------------------------------- @@ -38,6 +37,11 @@ # error "Unsupported language: ISO C99 or a newer version is required." #endif +// --------------------------------------------- INTERNAL INCLUDES ---------------------------------------------- +// The internal includes are placed here after the config header is included and CANARD_ASSERT is defined. + +#include "_canard_cavl.h" + // --------------------------------------------- COMMON DEFINITIONS --------------------------------------------- #define BITS_PER_BYTE 8U