libxxmini: Fix error: use of undeclared identifier 'nullptr'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-05-15 13:03:17 +08:00 committed by Petro Karashchenko
parent efc863217b
commit b39d70fe25
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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