Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
codesigner committed Dec 21, 2022
1 parent c29a3bb commit 440d609
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/memory/NewDelete.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

#include "common/memory/Memory.h"

#if defined(__has_feature)
#if not __has_feature(memory_sanitizer)
#if !__has_feature(memory_sanitizer)
/// Replace default new/delete with memory tracking versions.
/// new
void *operator new(std::size_t size) {
Expand Down Expand Up @@ -92,4 +91,3 @@ void operator delete[](void *ptr, std::size_t size, std::align_val_t align) noex
nebula::memory::deleteSized(ptr, size, align);
}
#endif
#endif

0 comments on commit 440d609

Please sign in to comment.