Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
c3bd4fd1
Commit
c3bd4fd1
authored
7 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
stdnoreturn.h: Definitions removed from compiler.h below here
parent
c4ab1550
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/stdnoreturn.h
+20
-4
20 additions, 4 deletions
include/stdnoreturn.h
with
20 additions
and
4 deletions
include/stdnoreturn.h
+
20
−
4
View file @
c3bd4fd1
...
...
@@ -40,10 +40,26 @@
* Included Files
****************************************************************************/
/* If the noreturn keyword is support by this toolchain, then keywork will be
* defined in compiler.h.
*/
#ifdef __GNUC__
#include
<nuttx/compiler.h>
/* C11 adds _Noreturn keyword that the function will not return. */
# if __cplusplus >= 201103L
# define noreturn _Noreturn
# else
# define noreturn
# endif
#elif defined(SDCC) || defined(__SDCC)
/* Current SDCC supports noreturn via C11 _Noreturn keyword. */
# define noreturn _Noreturn
#else
# define noreturn
#endif
#endif
/* __INCLUDE_STDNORETURN_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment