We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9578ffd + 3fb2484 commit 48fbee9Copy full SHA for 48fbee9
1 file changed
src/unity_internals.h
@@ -87,6 +87,13 @@
87
/* Since C23, the keyword _Noreturn has been replaced by the attribute noreturn, based on: */
88
/* https://en.cppreference.com/w/c/language/attributes/noreturn */
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
97
#endif
98
99
#ifndef UNITY_NORETURN
0 commit comments