dolphin/Source/Core
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
..
AudioCommon StripSpaces: only strip spaces 2022-07-25 18:40:12 -07:00
Common Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
Core Merge pull request #11005 from t895/cover-only 2022-08-23 18:24:51 +02:00
DiscIO Merge pull request #10997 from JosJuice/nfs-check 2022-08-22 15:14:15 +02:00
DolphinNoGUI Merge pull request #10933 from shuffle2/vs 2022-08-22 15:19:13 +02:00
DolphinQt Merge pull request #10809 from TryTwo/PR_CodeWidget_Filters 2022-08-22 15:47:20 -04:00
DolphinTool Merge pull request #10933 from shuffle2/vs 2022-08-22 15:19:13 +02:00
InputCommon Merge pull request #10889 from shuffle2/spng 2022-07-26 12:53:04 +02:00
MacUpdater
UICommon Merge pull request #10940 from InvoxiPlayGames/ipc-discord 2022-08-08 08:11:42 +12:00
UpdaterCommon cmake: Don't use PCH with Qt6. 2022-05-22 01:19:44 +02:00
VideoBackends Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
VideoCommon Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
WinUpdater msbuild: tidy up the linked libs 2022-08-02 22:24:22 -07:00
CMakeLists.txt CMakeLists: Add option to disable automatic update support 2022-03-18 03:04:51 -04:00
DolphinLib.ARM64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.props Merge pull request #10941 from shuffle2/crypto-cleanup 2022-08-05 12:12:34 +02:00
DolphinLib.vcxproj msbuild: refactor to reduce rebuild events 2022-08-02 22:24:22 -07:00
DolphinLib.vcxproj.user msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.x64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00