-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta/pp: fix preprocessor UB in tests
Usually I would've amended the previous commit, but it's useful to keep it separate in this case as it makes easier to deal with this problem in the future. Previously I didn't use a macro, instead I used static_assert directly. However, using #if inside a function-like macro invocation is UB for no good reason and Visual C++'s preprocessor refuses to work correctly. warning: C5101: use of preprocessor directive in function-like macro argument list is undefined behavior
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters