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 87
87
/* Since C23, the keyword _Noreturn has been replaced by the attribute noreturn, based on: */
88
88
/* https://en.cppreference.com/w/c/language/attributes/noreturn */
89
89
#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
90
97
#endif
91
98
#endif
92
99
#ifndef UNITY_NORETURN
You can’t perform that action at this time.
0 commit comments