mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed zero as null pointer constant
This commit is contained in:
parent
26c395c78b
commit
6390805e6d
@ -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…
Reference in New Issue
Block a user