mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Name the return types rettype
instead of retval
Minor code style fix. They are return types, not return values.
This commit is contained in:
parent
9d1659c3a4
commit
32f30020fa
1 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@
|
||||||
static void *libHandle = NULL;
|
static void *libHandle = NULL;
|
||||||
static intptr_t steamUserStats = (intptr_t) NULL;
|
static intptr_t steamUserStats = (intptr_t) NULL;
|
||||||
|
|
||||||
#define FOREACH_FUNC(retval, name, params) static retval (*name) params = NULL;
|
#define FOREACH_FUNC(rettype, name, params) static rettype (*name) params = NULL;
|
||||||
FUNC_LIST
|
FUNC_LIST
|
||||||
#undef FOREACH_FUNC
|
#undef FOREACH_FUNC
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ static void ClearPointers(void)
|
||||||
SDL_UnloadObject(libHandle);
|
SDL_UnloadObject(libHandle);
|
||||||
libHandle = NULL;
|
libHandle = NULL;
|
||||||
steamUserStats = (intptr_t) NULL;
|
steamUserStats = (intptr_t) NULL;
|
||||||
#define FOREACH_FUNC(retval, name, params) name = NULL;
|
#define FOREACH_FUNC(rettype, name, params) name = NULL;
|
||||||
FUNC_LIST
|
FUNC_LIST
|
||||||
#undef FOREACH_FUNC
|
#undef FOREACH_FUNC
|
||||||
}
|
}
|
||||||
|
@ -92,8 +92,8 @@ int32_t STEAM_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define FOREACH_FUNC(retval, name, params) \
|
#define FOREACH_FUNC(rettype, name, params) \
|
||||||
name = (retval (*) params) SDL_LoadFunction(libHandle, #name); \
|
name = (rettype (*) params) SDL_LoadFunction(libHandle, #name); \
|
||||||
if (!name) \
|
if (!name) \
|
||||||
{ \
|
{ \
|
||||||
vlog_error("%s symbol %s not found!", STEAM_LIBRARY, #name); \
|
vlog_error("%s symbol %s not found!", STEAM_LIBRARY, #name); \
|
||||||
|
|
Loading…
Reference in a new issue