-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to clarify pw3_padded_arg_inner test
I saw your comment Brett, before you deleted it, hopefully this makes it slightly clearer at what my intention was and with this test and why there are two identical macros defined.
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
libs/preprocessor/tests/warnings/pw3_padded_arg_inner/source.hpp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#define HELLO(var1, var2) INNER(Hello, var1##var2) | ||
#define GREET(var1, var2) INNER(Greetings, var1##var2) | ||
#define TEST1(var1, var2) INNER(var1, var2) | ||
#define TEST2(var1, var2) INNER(var1, var2) // Separate macro to trigger unique warning for INNER padding | ||
#define INNER(var1, var2) var1 var2 | ||
|
||
value1 = HELLO(John,Smith); // Only inner | ||
value2 = GREET(John, Smith); // Both call and inner | ||
TEST1(John,Smith); // Only inner | ||
TEST2(John, Smith); // Both call and inner |
20 changes: 10 additions & 10 deletions
20
libs/preprocessor/tests/warnings/pw3_padded_arg_inner/stderr.ansi
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