Skip to content

Commit

Permalink
Edit macro to use only a single instance of '#'.
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Tempelaar-Lietz <xlietz@gmail.com>
  • Loading branch information
xlietz committed Oct 7, 2019
1 parent e2860ce commit 247dbac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OpenEXR/IlmImfTest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@

using namespace std;

#define TEST_STRING(x) #x
#define TEST(x,y) \
if (argc < 2 || (!strcmp (argv[1], #x) || !strcmp (argv[1], y))) \
if (argc < 2 || (!strcmp (argv[1], TEST_STRING(x)) || !strcmp (argv[1], y))) \
{ \
cout << "\n=======\nRunning " << #x <<endl; \
cout << "\n=======\nRunning " << TEST_STRING(x) <<endl; \
x(tempDir); \
}

Expand Down

0 comments on commit 247dbac

Please sign in to comment.