libxxmini: Fix error: use of undeclared identifier 'nullptr'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
efc863217b
commit
b39d70fe25
@ -69,7 +69,7 @@ FAR void *operator new(std::size_t nbytes)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEBUGASSERT(alloc != nullptr);
|
DEBUGASSERT(alloc != NULL);
|
||||||
|
|
||||||
// Return the allocated value
|
// Return the allocated value
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ FAR void *operator new(std::size_t nbytes)
|
|||||||
|
|
||||||
FAR void *operator new(std::size_t nbytes, FAR void *ptr)
|
FAR void *operator new(std::size_t nbytes, FAR void *ptr)
|
||||||
{
|
{
|
||||||
DEBUGASSERT(ptr != nullptr);
|
DEBUGASSERT(ptr != NULL);
|
||||||
|
|
||||||
// Return the ptr pointer
|
// Return the ptr pointer
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ FAR void *operator new[](std::size_t nbytes)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEBUGASSERT(alloc != nullptr);
|
DEBUGASSERT(alloc != NULL);
|
||||||
|
|
||||||
// Return the allocated value
|
// Return the allocated value
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ FAR void *operator new[](std::size_t nbytes)
|
|||||||
|
|
||||||
FAR void *operator new[](std::size_t nbytes, FAR void *ptr)
|
FAR void *operator new[](std::size_t nbytes, FAR void *ptr)
|
||||||
{
|
{
|
||||||
DEBUGASSERT(ptr != nullptr);
|
DEBUGASSERT(ptr != NULL);
|
||||||
|
|
||||||
// Return the ptr pointer
|
// Return the ptr pointer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user