mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix sunpro pragma
SunPro's #pragma does_not_return(...) needs an argument. That does not fit the attribute syntax we employ.
This commit is contained in:
parent
233c2018f1
commit
4fbb344156
1 changed files with 1 additions and 5 deletions
|
@ -20,16 +20,12 @@
|
|||
* extension libraries. They could be written in C++98.
|
||||
* @brief Defines #RBIMPL_ATTR_NORETURN.
|
||||
*/
|
||||
#include "ruby/internal/compiler_since.h"
|
||||
#include "ruby/internal/has/attribute.h"
|
||||
#include "ruby/internal/has/cpp_attribute.h"
|
||||
#include "ruby/internal/has/declspec_attribute.h"
|
||||
|
||||
/** Wraps (or simulates) `[[noreturn]]` */
|
||||
#if RBIMPL_COMPILER_SINCE(SunPro, 5, 10, 0)
|
||||
# define RBIMPL_ATTR_NORETURN() _Pragma("does_not_return")
|
||||
|
||||
#elif RBIMPL_HAS_DECLSPEC_ATTRIBUTE(noreturn)
|
||||
#if RBIMPL_HAS_DECLSPEC_ATTRIBUTE(noreturn)
|
||||
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
|
||||
|
||||
#elif RBIMPL_HAS_ATTRIBUTE(noreturn)
|
||||
|
|
Loading…
Reference in a new issue