mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 14:35:08 +00:00
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
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue