Skip to content

Commit

Permalink
Add JUCE_NO_DEPRECATED_HEAPBLOCK_METHODS to optionally remove depreca…
Browse files Browse the repository at this point in the history
…ted HeapBlock methods
  • Loading branch information
abrykt committed Jan 26, 2024
1 parent df63e83 commit 07ef553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/juce_core/memory/juce_HeapBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ class HeapBlock
data = nullptr;
}

#ifndef JUCE_NO_DEPRECATED_HEAPBLOCK_METHODS

template <typename SizeType>
[[deprecated]] void malloc(SizeType newNumElements, size_t elementSize = sizeof(ElementType)) {
return jmalloc(newNumElements, elementSize);
Expand Down Expand Up @@ -326,6 +328,8 @@ class HeapBlock
jfree();
}

#endif

/** Swaps this object's data with the data of another HeapBlock.
The two objects simply exchange their data pointers.
*/
Expand Down

0 comments on commit 07ef553

Please sign in to comment.