Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure NORET macro defined, for older Rs (#512)
- Loading branch information
1 parent
8c64530
commit a2e45fa
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,12 @@ | |
#include <R_ext/Rdynload.h> | ||
#include <Rversion.h> | ||
|
||
#if defined(__GNUC__) && __GNUC__ >= 3 | ||
#define NORET __attribute__((noreturn)) | ||
#else | ||
#define NORET | ||
#endif | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
eddelbuettel
Member
|
||
#undef major | ||
#undef minor | ||
#undef makedev | ||
|
Can we / should we make this conditional? Say
#ifndef NORET <as before...>. #endif
?