mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
libxxmini: Fix error: use of undeclared identifier 'nullptr'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
efc863217b
commit
b39d70fe25
@@ -69,7 +69,7 @@ FAR void *operator new(std::size_t nbytes)
|
||||
}
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(alloc != nullptr);
|
||||
DEBUGASSERT(alloc != NULL);
|
||||
|
||||
// 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)
|
||||
{
|
||||
DEBUGASSERT(ptr != nullptr);
|
||||
DEBUGASSERT(ptr != NULL);
|
||||
|
||||
// Return the ptr pointer
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ FAR void *operator new[](std::size_t nbytes)
|
||||
}
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(alloc != nullptr);
|
||||
DEBUGASSERT(alloc != NULL);
|
||||
|
||||
// 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)
|
||||
{
|
||||
DEBUGASSERT(ptr != nullptr);
|
||||
DEBUGASSERT(ptr != NULL);
|
||||
|
||||
// Return the ptr pointer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user