提交 4fbb3441 编写于 作者: 卜部昌平

fix sunpro pragma

SunPro's #pragma does_not_return(...) needs an argument.  That does not
fit the attribute syntax we employ.
上级 233c2018
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册