make functions constexpr or noexcept when possible

This commit is contained in:
Ferdinand Bachmann
2020-04-18 13:11:55 +02:00
parent 5feb3f4f60
commit 8cfb62f315
3 changed files with 62 additions and 55 deletions
+4 -2
View File
@@ -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