Fixed bug 5497 - SDL_COMPOSE_ERROR is wrong

UMU

#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str

I think SDL_STRINGIFY_ARG should be removed.

#define SDL_COMPOSE_ERROR(str) __FUNCTION__ ", " str

(verified with Visual Studio 2019)
This commit is contained in:
Sam Lantinga committed 2021-02-10 10:22:16 -05:00
1 parent de1c19b3f5
commit de85d61256
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ extern ISwapChainBackgroundPanelNative * WINRT_GlobalSwapChainBackgroundPanelNat
#endif /* __WINRT__ */
#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str
#define SDL_COMPOSE_ERROR(str) __FUNCTION__ ", " str
#define SAFE_RELEASE(X) if ((X)) { IUnknown_Release(SDL_static_cast(IUnknown*, X)); X = NULL; }