forked from Ferdi265/cxx-ring-buffer
make functions constexpr or noexcept when possible
This commit is contained in:
1 parent
5feb3f4f60
commit
8cfb62f315
3 files changed
+62
-55
No files matched your search
@@ -2,9 +2,11 @@
|
||||
#define _RING_BUFFER_CONFIG_H
|
||||
|
||||
#ifdef RING_BUFFER_NOEXCEPT
|
||||
#define NOEXCEPT(x) noexcept(x)
|
||||
#define NOEXCEPT noexcept
|
||||
#define COND_NOEXCEPT(x) noexcept(x)
|
||||
#else
|
||||
#define NOEXCEPT(x)
|
||||
#define NOEXCEPT
|
||||
#define COND_NOEXCEPT(x)
|
||||
#endif
|
||||
|
||||
#ifdef RING_BUFFER_CONSTEXPR
|
||||
|
||||
Reference in new issue
Block a user