[DEV] add null element nstead of nullptr
This commit is contained in:
parent
a2e20519f0
commit
3be47493d3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user