Define MAYBE macros for explicit and constexpr
- So we can wrap less code in macros
This commit is contained in:
parent
ac21d7bdad
commit
6d1ddc8980
@ -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
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user