forked from Ferdi265/cxx-ring-buffer
add feature detection machinery
This commit is contained in:
1 parent
ce9d000673
commit
5feb3f4f60
7 files changed
+315
-222
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#ifndef _RING_BUFFER_CONFIG_H
|
||||
#define _RING_BUFFER_CONFIG_H
|
||||
|
||||
#ifdef RING_BUFFER_NOEXCEPT
|
||||
#define NOEXCEPT(x) noexcept(x)
|
||||
#else
|
||||
#define NOEXCEPT(x)
|
||||
#endif
|
||||
|
||||
#ifdef RING_BUFFER_CONSTEXPR
|
||||
#define CONSTEXPR constexpr
|
||||
#else
|
||||
#define CONSTEXPR
|
||||
#endif
|
||||
|
||||
#ifdef RING_BUFFER_CONSTEXPR_DESTRUCTORS
|
||||
#define CONSTEXPR_D CONSTEXPR
|
||||
#else
|
||||
#define CONSTEXPR_D
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user