From 247dbacd5ddde6766f6362a3109ea721f378fc4a Mon Sep 17 00:00:00 2001 From: Christina Tempelaar-Lietz Date: Thu, 3 Oct 2019 20:29:54 -0700 Subject: [PATCH] Edit macro to use only a single instance of '#'. Signed-off-by: Christina Tempelaar-Lietz --- OpenEXR/IlmImfTest/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenEXR/IlmImfTest/main.cpp b/OpenEXR/IlmImfTest/main.cpp index e7e9153a7a..56796013b9 100644 --- a/OpenEXR/IlmImfTest/main.cpp +++ b/OpenEXR/IlmImfTest/main.cpp @@ -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 <