Go to the documentation of this file. 68 #ifndef ti_sysbios_runtime_Assert__include 69 #define ti_sysbios_runtime_Assert__include 77 #define ti_sysbios_runtime_Assert_long_names 78 #include "Assert_defs.h" 84 #define Assert_E_assertFailed "%s" 86 #if BIOS_assertsEnabled_D 88 #define Assert_isTrue(c, id) do { \ 90 if (!(c)) __asm(
"bkpt #13"); }
while (0);
92 extern void Assert_failX(
const char *
id);
93 #if Assert_addFileLine_D 94 #define Assert_isTrue(c, id) do { \ 95 Error_PLACE_STR_IN_SECTION(loc, # id " (" __FILE__ ":" Error_STR(__LINE__) ")"); \ 96 if (!(c)) Assert_failX(loc); } while (0); 98 #define Assert_isTrue(c, id) do { \ 99 Error_PLACE_STR_IN_SECTION(loc, # id); \ 100 if (!(c)) Assert_failX(loc); } while (0); 104 #define Assert_isTrue(c, id) 113 #undef ti_sysbios_runtime_Assert_long_names 114 #include "Assert_defs.h"
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale