aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-09 00:31:57 -0800
committerChris Robinson <[email protected]>2019-01-09 00:31:57 -0800
commitb49c45d3a462a16c72bd824cd40e3b37d6e31939 (patch)
treed80009176043cf1593088eea28ccbcefcfb66f01
parent673983dc5d05e8b47958c95f12dba3d7a915edfa (diff)
Add prefixes for ALCdevice and ALCcontext
-rw-r--r--Alc/alcontext.h1
-rw-r--r--OpenAL32/Include/alMain.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index 77ba8910..42c29ecb 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -134,6 +134,7 @@ struct ALCcontext {
ALCcontext& operator=(const ALCcontext&) = delete;
~ALCcontext();
+ static constexpr inline const char *CurrentPrefix() noexcept { return "ALCcontext::"; }
DEF_NEWDEL(ALCcontext)
};
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 9934a193..7f7013aa 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -740,6 +740,7 @@ struct ALCdevice {
ALsizei channelsFromFmt() const noexcept { return ChannelsFromDevFmt(FmtChans, mAmbiOrder); }
ALsizei frameSizeFromFmt() const noexcept { return bytesFromFmt() * channelsFromFmt(); }
+ static constexpr inline const char *CurrentPrefix() noexcept { return "ALCdevice::"; }
DEF_NEWDEL(ALCdevice)
};