mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
net.endian: resolution dependence on Boost
This commit is contained in:
parent
74669a5a8a
commit
f2c09dd3af
139 changed files with 4800 additions and 202 deletions
|
@ -65,11 +65,15 @@
|
|||
// SPROUT_DEFAULTED_DESTRUCTOR_DECL
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL = default;
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL = default;
|
||||
# define SPROUT_DEFAULTED_FUNCTION_DECL = default;
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_FUNCTION(FUNC, BODY) FUNC SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_FUNCTION_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_FUNCTION(FUNC, BODY) FUNC BODY
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
|
||||
//
|
||||
|
@ -77,8 +81,10 @@
|
|||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# define SPROUT_DELETED_FUNCTION_DECL = delete;
|
||||
# define SPROUT_DELETED_FUNCTION(FUNC) FUNC SPROUT_DELETED_FUNCTION_DECL
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# define SPROUT_DELETED_FUNCTION_DECL ;
|
||||
# define SPROUT_DELETED_FUNCTION(FUNC) private: FUNC SPROUT_DELETED_FUNCTION_DECL
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
|
||||
//
|
||||
|
@ -92,6 +98,43 @@
|
|||
# define SPROUT_DEPRECATED
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_FORCEINLINE
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_FORCEINLINE __forceinline
|
||||
#elif defined(__GNUC__) && (__GNUC__ > 3)
|
||||
# define SPROUT_FORCEINLINE inline __attribute__ ((__always_inline__))
|
||||
#else
|
||||
# define SPROUT_FORCEINLINE inline
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_NOINLINE
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_NOINLINE __declspec(noinline)
|
||||
#elif defined(__GNUC__) && (__GNUC__ > 3)
|
||||
# if defined(__CUDACC__)
|
||||
# define SPROUT_NOINLINE __attribute__ ((noinline))
|
||||
# else
|
||||
# define SPROUT_NOINLINE __attribute__ ((__noinline__))
|
||||
# endif
|
||||
#else
|
||||
# define SPROUT_NOINLINE
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_NORETURN
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_NORETURN __declspec(noreturn)
|
||||
#elif defined(__GNUC__)
|
||||
# define SPROUT_NORETURN __attribute__ ((__noreturn__))
|
||||
#else
|
||||
# define SPROUT_NORETURN
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_USE_EXPLICIT_CONVERSION_OPERATORS
|
||||
// SPROUT_EXPLICIT_CONVERSION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue