aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-23 16:00:50 -0700
committerChris Robinson <[email protected]>2020-03-23 16:00:50 -0700
commit6a3b3b180b7138e1ea1c9a2e345747e69d664411 (patch)
tree63facb74da575ac03a828d8f56f03cb5513d34f2 /al/buffer.h
parentb53294e291c0e00b94639527ae84d03037029f1a (diff)
Add a macro to disable class-specific new/delete
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/al/buffer.h b/al/buffer.h
index 61ae1863..15546ac9 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -104,6 +104,8 @@ struct ALbuffer {
inline ALuint bytesFromFmt() const noexcept { return BytesFromFmt(mFmtType); }
inline ALuint channelsFromFmt() const noexcept { return ChannelsFromFmt(mFmtChannels); }
inline ALuint frameSizeFromFmt() const noexcept { return channelsFromFmt() * bytesFromFmt(); }
+
+ DISABLE_ALLOC()
};
#endif