Fixed zero as null pointer constant

master
Christophe Riccio ago%!(EXTRA string=7 years)
parent 26c395c78b
commit 6390805e6d
  1. 16
      glm/detail/setup.hpp
  2. 2
      glm/gtx/string_cast.inl

@ -508,6 +508,22 @@
# define GLM_HAS_OPENMP 0
#endif
///////////////////////////////////////////////////////////////////////////////////
// nullptr
//
#if GLM_LANG & GLM_LANG_CXX0X_FLAG
# define GLM_HAS_NULLPTR 1
#else
# define GLM_HAS_NULLPTR 0
#endif
#if GLM_HAS_NULLPTR
# define GLM_NULLPTR nullptr
#else
# define GLM_NULLPTR 0
#endif
///////////////////////////////////////////////////////////////////////////////////
// Static assert

@ -25,7 +25,7 @@ namespace detail
char text[STRING_BUFFER];
va_list list;
if(msg == 0)
if(msg == GLM_NULLPTR)
return std::string();
va_start(list, msg);

Loading…
Cancel
Save