Răsfoiți Sursa

config: ENTT_NOEXCEPTION -> ENTT_NO_EXCEPTION

skypjack 2 luni în urmă
părinte
comite
3ab0000b31
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 2 2
      docs/md/config.md
  2. 1 1
      src/entt/config/config.h

+ 2 - 2
docs/md/config.md

@@ -4,7 +4,7 @@
 
 
 * [Introduction](#introduction)
 * [Introduction](#introduction)
 * [Definitions](#definitions)
 * [Definitions](#definitions)
-  * [ENTT_NOEXCEPTION](#entt_noexception)
+  * [ENTT_NO_EXCEPTION](#entt_no_exception)
   * [ENTT_USE_ATOMIC](#entt_use_atomic)
   * [ENTT_USE_ATOMIC](#entt_use_atomic)
   * [ENTT_ID_TYPE](#entt_id_type)
   * [ENTT_ID_TYPE](#entt_id_type)
   * [ENTT_SPARSE_PAGE](#entt_sparse_page)
   * [ENTT_SPARSE_PAGE](#entt_sparse_page)
@@ -33,7 +33,7 @@ Each parameter can result in internal library definitions. It is not recommended
 to try to also modify these definitions, since there is no guarantee that they
 to try to also modify these definitions, since there is no guarantee that they
 will remain stable over time unlike the options below.
 will remain stable over time unlike the options below.
 
 
-## ENTT_NOEXCEPTION
+## ENTT_NO_EXCEPTION
 
 
 Define this variable without assigning any value to it to turn off exception
 Define this variable without assigning any value to it to turn off exception
 handling in `EnTT`.<br/>
 handling in `EnTT`.<br/>

+ 1 - 1
src/entt/config/config.h

@@ -5,7 +5,7 @@
 
 
 // NOLINTBEGIN(cppcoreguidelines-macro-usage)
 // NOLINTBEGIN(cppcoreguidelines-macro-usage)
 
 
-#if defined(__cpp_exceptions) && !defined(ENTT_NOEXCEPTION)
+#if defined(__cpp_exceptions) && !defined(ENTT_NO_EXCEPTION)
 #    define ENTT_THROW throw
 #    define ENTT_THROW throw
 #    define ENTT_TRY try
 #    define ENTT_TRY try
 #    define ENTT_CATCH catch(...)
 #    define ENTT_CATCH catch(...)