Skip to content

Commit

Permalink
Fixed bug 5497 - SDL_COMPOSE_ERROR is wrong
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
slouken committed Feb 10, 2021
1 parent de1c19b commit de85d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/direct3d11/SDL_render_d3d11.c
Expand Up @@ -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; }

Expand Down

0 comments on commit de85d61

Please sign in to comment.