mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix macros for noexcept
This commit is contained in:
parent
23f24450b0
commit
979af136a1
125 changed files with 324 additions and 287 deletions
|
@ -106,17 +106,26 @@
|
|||
|
||||
//
|
||||
// SPROUT_NOEXCEPT
|
||||
// SPROUT_NOEXCEPT_OR_NOTHROW
|
||||
// SPROUT_NOEXCEPT_IF
|
||||
// SPROUT_NOEXCEPT_EXPR
|
||||
// SPROUT_NOEXCEPT_EXPR_OR_DEFAULT
|
||||
// SPROUT_NOEXCEPT_IF_EXPR
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
# define SPROUT_NOEXCEPT noexcept
|
||||
# define SPROUT_NOEXCEPT_EXPR(EXPR) noexcept(EXPR)
|
||||
# define SPROUT_NOEXCEPT_EXPR_OR_DEFAULT(EXPR, C) noexcept(EXPR)
|
||||
# define SPROUT_NOEXCEPT_OR_NOTHROW noexcept
|
||||
# define SPROUT_NOEXCEPT_IF(COND) noexcept((COND))
|
||||
# define SPROUT_NOEXCEPT_EXPR(EXPR) noexcept((EXPR))
|
||||
# define SPROUT_NOEXCEPT_EXPR_OR_DEFAULT(EXPR, C) noexcept((EXPR))
|
||||
# define SPROUT_NOEXCEPT_IF_EXPR(EXPR) noexcept(noexcept((EXPR)))
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
# define SPROUT_NOEXCEPT
|
||||
# define SPROUT_NOEXCEPT_EXPR(EXPR)
|
||||
# define SPROUT_NOEXCEPT_OR_NOTHROW throw()
|
||||
# define SPROUT_NOEXCEPT_IF(COND)
|
||||
# define SPROUT_NOEXCEPT_EXPR(EXPR) false
|
||||
# define SPROUT_NOEXCEPT_EXPR_OR_DEFAULT(EXPR, C) C
|
||||
# define SPROUT_NOEXCEPT_IF_EXPR(EXPR)
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue