diff options
author | Chris Robinson <[email protected]> | 2023-12-12 16:12:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-12 16:12:15 -0800 |
commit | bdd54018f3dd63a9591fae8b7a21a71e8adc3ddb (patch) | |
tree | e1b9305f976c37e15af078a2a4ceb4c88156a6f1 /al/state.cpp | |
parent | 60aa22f20d63a3da9f06b9398a2a8656ebbd0342 (diff) |
Remove void from empty parameter lists
Also convert some functions to trailing return types and remove (void) casts.
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/al/state.cpp b/al/state.cpp index fd5dc5e3..d9c199d5 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -301,7 +301,7 @@ inline void UpdateProps(ALCcontext *context) /* WARNING: Non-standard export! Not part of any extension, or exposed in the * alcFunctions list. */ -AL_API const ALchar* AL_APIENTRY alsoft_get_version(void) noexcept +AL_API auto AL_APIENTRY alsoft_get_version() noexcept -> const ALchar* { static const auto spoof = al::getenv("ALSOFT_SPOOF_VERSION"); if(spoof) return spoof->c_str(); @@ -388,7 +388,7 @@ FORCE_ALIGN ALboolean AL_APIENTRY alIsEnabledDirect(ALCcontext *context, ALenum } #define DECL_GETFUNC(R, Name, Ext) \ -AL_API R AL_APIENTRY Name##Ext(ALenum pname) noexcept \ +AL_API auto AL_APIENTRY Name##Ext(ALenum pname) noexcept -> R \ { \ R value{}; \ auto context = GetContextRef(); \ @@ -396,7 +396,7 @@ AL_API R AL_APIENTRY Name##Ext(ALenum pname) noexcept \ Name##vDirect##Ext(GetContextRef().get(), pname, &value); \ return value; \ } \ -FORCE_ALIGN R AL_APIENTRY Name##Direct##Ext(ALCcontext *context, ALenum pname) noexcept \ +FORCE_ALIGN auto AL_APIENTRY Name##Direct##Ext(ALCcontext *context, ALenum pname) noexcept -> R \ { \ R value{}; \ Name##vDirect##Ext(context, pname, &value); \ |