Use an inline function instead of a function-like macro
[openal-soft.git] / alc / alconfig.h
blobdf2830ccce7e273c73c9ac5b322915c0ece4bad0
1 #ifndef ALCONFIG_H
2 #define ALCONFIG_H
4 #include <string>
6 #include "aloptional.h"
8 void ReadALConfig();
10 bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def);
12 al::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName);
13 al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
14 al::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName);
15 al::optional<float> ConfigValueFloat(const char *devName, const char *blockName, const char *keyName);
16 al::optional<bool> ConfigValueBool(const char *devName, const char *blockName, const char *keyName);
18 #endif /* ALCONFIG_H */