[DEV] add null element nstead of nullptr

This commit is contained in:
Edouard DUPIN 2018-06-19 21:35:21 +02:00
parent a2e20519f0
commit 3be47493d3

View File

@ -33,6 +33,10 @@ namespace etk {
#define nullptr etk::getNullPointer() #define nullptr etk::getNullPointer()
#endif #endif
#if !defined(nullptr)
#define null etk::getNullPointer()
#endif
template<class T> template<class T>
inline bool operator==(T* p, const etk::NullPtr) { inline bool operator==(T* p, const etk::NullPtr) {
return p == 0; return p == 0;