We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab6c6ee + 65bf516 commit 0fdb93cCopy full SHA for 0fdb93c
core/os/memory.h
@@ -95,6 +95,10 @@ class DefaultAllocator {
95
_FORCE_INLINE_ static void free(void *p_ptr) { Memory::free_static(p_ptr, false); }
96
};
97
98
+// Works around an issue where memnew_placement (char *) would call the p_description version.
99
+inline void *operator new(size_t p_size, char *p_dest) {
100
+ return operator new(p_size, (void *)p_dest);
101
+}
102
void *operator new(size_t p_size, const char *p_description); ///< operator new that takes a description and uses MemoryStaticPool
103
void *operator new(size_t p_size, void *(*p_allocfunc)(size_t p_size)); ///< operator new that takes a description and uses MemoryStaticPool
104
0 commit comments