output/Registry: add `noexcept`
This commit is contained in:
parent
b18ef61361
commit
333b36f090
|
@ -94,7 +94,7 @@ constexpr const AudioOutputPlugin *audio_output_plugins[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const AudioOutputPlugin *
|
const AudioOutputPlugin *
|
||||||
GetAudioOutputPluginByName(const char *name)
|
GetAudioOutputPluginByName(const char *name) noexcept
|
||||||
{
|
{
|
||||||
audio_output_plugins_for_each(plugin)
|
audio_output_plugins_for_each(plugin)
|
||||||
if (StringIsEqual(plugin->name, name))
|
if (StringIsEqual(plugin->name, name))
|
||||||
|
|
|
@ -8,8 +8,9 @@ struct AudioOutputPlugin;
|
||||||
|
|
||||||
extern const AudioOutputPlugin *const audio_output_plugins[];
|
extern const AudioOutputPlugin *const audio_output_plugins[];
|
||||||
|
|
||||||
|
[[gnu::pure]]
|
||||||
const AudioOutputPlugin *
|
const AudioOutputPlugin *
|
||||||
GetAudioOutputPluginByName(const char *name);
|
GetAudioOutputPluginByName(const char *name) noexcept;
|
||||||
|
|
||||||
#define audio_output_plugins_for_each(plugin) \
|
#define audio_output_plugins_for_each(plugin) \
|
||||||
for (const AudioOutputPlugin *plugin, \
|
for (const AudioOutputPlugin *plugin, \
|
||||||
|
|
Loading…
Reference in New Issue