Tool/software:
I am getting a new linting tool set up to run with my project, and I am running into an issue with the _assert(...) function/definition. From ccs2020\ccs\tools\compiler\ti-cgt-c2000_22.6.2.LTS\lib\src\assert.h, the _assert(...) call is made. However, I cannot find anywhere where this is defined or where it is documented, and so naturally my linter raises an error that it cannot find the declaration of it. Where does _assert(...) come from?
#if defined(NDEBUG) #define assert(_ignore) ((void)0) #elif defined(NASSERT) #define assert(_expr) _nassert(_expr) #else #if (defined(__clang__) && defined(__arm__)) || \ (defined(_AEABI_PORTABILITY_LEVEL) && _AEABI_PORTABILITY_LEVEL != 0) extern void __aeabi_assert(const char *expr, const char *file, int line); #define assert(__e) ((__e) ? (void)0 : \ __aeabi_assert(#__e, __FILE__, __LINE__)) #else #define assert(_expr) _assert((_expr) != 0, \ "Assertion failed, (" _STR(_expr) "), file " __FILE__ \ ", line " _STR(__LINE__) "\n") #endif /* _AEABI_PORTABILITY_LEVEL, __clang__ */ #endif /* NDEBUG, NASSERT */