mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Consistency of indents, removes false-pos warnings
Clang reports missleading indentation with non bracketed if in the presence of mixed tabs/spaces
This commit is contained in:
parent
06119987a8
commit
c1cafd3bbc
1 changed files with 1611 additions and 1607 deletions
|
@ -700,11 +700,15 @@ ALCdevice *OpenALSoundRenderer::InitDevice()
|
|||
|
||||
template<typename T>
|
||||
static void LoadALFunc(const char *name, T *x)
|
||||
{ *x = reinterpret_cast<T>(alGetProcAddress(name)); }
|
||||
{
|
||||
*x = reinterpret_cast<T>(alGetProcAddress(name));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static void LoadALCFunc(ALCdevice *device, const char *name, T *x)
|
||||
{ *x = reinterpret_cast<T>(alcGetProcAddress(device, name)); }
|
||||
{
|
||||
*x = reinterpret_cast<T>(alcGetProcAddress(device, name));
|
||||
}
|
||||
|
||||
#define LOAD_FUNC(x) (LoadALFunc(#x, &x))
|
||||
#define LOAD_DEV_FUNC(d, x) (LoadALCFunc(d, #x, &x))
|
||||
|
|
Loading…
Reference in a new issue