config: add ENTT_NOEXCEPT_IF (for future uses)

This commit is contained in:
Michele Caini
2022-03-22 12:43:47 +01:00
parent ae3dec19fd
commit f6aaafd60f
2 changed files with 3 additions and 1 deletions

2
TODO
View File

@@ -5,13 +5,13 @@
WIP:
* get rid of storage_traits class template
* uses-allocator construction: any (with allocator support), cache, poly, ...
* add an ENTT_NOEXCEPT with args and use it to make ie compressed_pair conditionally noexcept
* process scheduler: reviews, use free lists internally
* runtime events (emitter)
* iterator based try_emplace vs try_insert for perf reasons
* dedicated entity storage, in-place O(1) release/destroy for non-orphaned entities, out-of-sync model
* entity-only and exclude-only views
* custom allocators all over
* use ENTT_NOEXCEPT_IF as appropriate (ie make compressed_pair conditionally noexcept)
WIP:
* add user data to type_info

View File

@@ -5,11 +5,13 @@
#if defined(__cpp_exceptions) && !defined(ENTT_NOEXCEPTION)
# define ENTT_NOEXCEPT noexcept
# define ENTT_NOEXCEPT_IF(expr) noexcept(expr)
# define ENTT_THROW throw
# define ENTT_TRY try
# define ENTT_CATCH catch(...)
#else
# define ENTT_NOEXCEPT
# define ENTT_NOEXCEPT_IF(...)
# define ENTT_THROW
# define ENTT_TRY if(true)
# define ENTT_CATCH if(false)