dolphin/Source/Core/VideoBackends
Pokechu22 0cced44142 Use `__VA_OPT__(, ) __VA_ARGS__` instead of `##__VA_ARGS__`
Per https://en.cppreference.com/w/cpp/preprocessor/replace#.23_and_.23.23_operators the `##` behavior is a nonstandard extension; this extension seems to be supported by all compilers we care about, but IntelliSense in visual studio doesn't correctly handle it, resulting in false errors in the IDE (but not when compiling).

Per https://en.cppreference.com/w/cpp/preprocessor/replace#Function-like_macros C++20 introduced a workaround, where `__VA_OPT__(, )` generates a comma if and only if `__VA_ARGS__` is non-empty.

This PR replaces all occurrences, with the exception of Externals, DSPSpy (which is not likely to be edited in MSVC and does not target C++20 currently), and JitArm64_Integer.cpp (which uses `Function(__VA_ARGS__)`, and thus does not ever need a comma).
2022-08-23 12:09:57 -07:00
..
D3D VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
D3D12 VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
D3DCommon D3DCommon: Remove unused swap chain functions 2022-08-17 18:16:50 -07:00
Metal MTLUtil: Include TargetConditionals 2022-07-23 17:22:11 -04:00
Null VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
OGL VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
Software VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
Vulkan Use `__VA_OPT__(, ) __VA_ARGS__` instead of `##__VA_ARGS__` 2022-08-23 12:09:57 -07:00
CMakeLists.txt VideoBackends: Add Metal renderer 2022-07-21 20:44:19 -05:00