Define MAYBE macros for explicit and constexpr

- So we can wrap less code in macros
This commit is contained in:
Jesse Talavera-Greenberg 2015-07-20 20:11:33 -04:00
parent ac21d7bdad
commit 6d1ddc8980

View File

@ -925,8 +925,16 @@
#if GLM_HAS_CONSTEXPR
# define GLM_CONSTEXPR constexpr
# define GLM_CONSTEXPR_MAYBE constexpr
#else
# 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
///////////////////////////////////////////////////////////////////////////////////