From 32f30020fa0c1ee166a83e47ebabc4347e29f669 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 17 Sep 2021 13:58:44 -0700 Subject: [PATCH] Name the return types `rettype` instead of `retval` Minor code style fix. They are return types, not return values. --- desktop_version/src/SteamNetwork.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/SteamNetwork.c b/desktop_version/src/SteamNetwork.c index bbfb8dfe..dd98ba43 100644 --- a/desktop_version/src/SteamNetwork.c +++ b/desktop_version/src/SteamNetwork.c @@ -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); \