File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 8787 /* Since C23, the keyword _Noreturn has been replaced by the attribute noreturn, based on: */
8888 /* https://en.cppreference.com/w/c/language/attributes/noreturn */
8989 #define UNITY_NORETURN [[ noreturn ]]
90+ #elif defined(__IAR_SYSTEMS_ICC__) && (__IAR_SYSTEMS_ICC__ >= 8)
91+ /* For IAR compilers supporting at least C99 use the IAR specific '__noreturn' keyword */
92+ /* Based on tests and: */
93+ /* https://wwwfiles.iar.com/arm/webic/doc/EWARM_DevelopmentGuide.ENU.pdf */
94+ /* https://wwwfiles.iar.com/AVR/webic/doc/EWAVR_CompilerGuide.pdf */
95+ /* https://wwwfiles.iar.com/msp430/webic/doc/EW430_CompilerReference.pdf */
96+ #define UNITY_NORETURN __noreturn
9097 #endif
9198 #endif
9299 #ifndef UNITY_NORETURN
You can’t perform that action at this time.
0 commit comments