Define MAYBE macros for explicit and constexpr

- So we can wrap less code in macros
master
Jesse Talavera-Greenberg ago%!(EXTRA string=10 years)
parent ac21d7bdad
commit 6d1ddc8980
  1. 8
      glm/detail/setup.hpp

@ -925,8 +925,16 @@
#if GLM_HAS_CONSTEXPR #if GLM_HAS_CONSTEXPR
# define GLM_CONSTEXPR constexpr # define GLM_CONSTEXPR constexpr
# define GLM_CONSTEXPR_MAYBE constexpr
#else #else
# define GLM_CONSTEXPR # define GLM_CONSTEXPR
# define GLM_CONSTEXPR_MAYBE const
#endif
#ifdef GLM_FORCE_EXPLICIT_CTOR
# define GLM_EXPLICIT_CTOR_MAYBE explicit
#else
# define GLM_EXPLICIT_CTOR_MAYBE
#endif #endif
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save