1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59: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:
Misa 2021-09-17 13:58:44 -07:00
parent 9d1659c3a4
commit 32f30020fa

View file

@ -59,7 +59,7 @@
static void *libHandle = 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
#undef FOREACH_FUNC
@ -70,7 +70,7 @@ static void ClearPointers(void)
SDL_UnloadObject(libHandle);
libHandle = NULL;
steamUserStats = (intptr_t) NULL;
#define FOREACH_FUNC(retval, name, params) name = NULL;
#define FOREACH_FUNC(rettype, name, params) name = NULL;
FUNC_LIST
#undef FOREACH_FUNC
}
@ -92,8 +92,8 @@ int32_t STEAM_init(void)
return 0;
}
#define FOREACH_FUNC(retval, name, params) \
name = (retval (*) params) SDL_LoadFunction(libHandle, #name); \
#define FOREACH_FUNC(rettype, name, params) \
name = (rettype (*) params) SDL_LoadFunction(libHandle, #name); \
if (!name) \
{ \
vlog_error("%s symbol %s not found!", STEAM_LIBRARY, #name); \