@@ -93,11 +93,6 @@ class MatType
93
93
* CV_ENUM and CV_FLAGS - macro to create printable wrappers for defines and enums *
94
94
\*****************************************************************************************/
95
95
96
- // helper macros to force expansion of macro arguments before stringification
97
- // "#" normally blocks argument expansion
98
- #define CV_STRINGIFY_ARGS (...) CV_STRINGIFY_ARGS_(__VA_ARGS__)
99
- #define CV_STRINGIFY_ARGS_ (...) #__VA_ARGS__
100
-
101
96
#define CV_ENUM (class_name, ...) \
102
97
namespace { \
103
98
using namespace cv ; using namespace cv ::cuda; using namespace cv ::ocl; \
@@ -106,7 +101,7 @@ class MatType
106
101
operator int () const { return val_; } \
107
102
void PrintTo (std::ostream* os) const { \
108
103
const int vals[] = { __VA_ARGS__ }; \
109
- const char * svals = CV_STRINGIFY_ARGS ( __VA_ARGS__); \
104
+ const char * svals = # __VA_ARGS__; \
110
105
for (int i = 0 , pos = 0 ; i < (int )(sizeof (vals)/sizeof (int )); ++i) { \
111
106
while (isspace (svals[pos]) || svals[pos] == ' ,' ) ++pos; \
112
107
int start = pos; \
@@ -135,7 +130,7 @@ class MatType
135
130
void PrintTo (std::ostream* os) const { \
136
131
using namespace cv ; using namespace cv ::cuda; using namespace cv ::ocl; \
137
132
const int vals[] = { __VA_ARGS__ }; \
138
- const char * svals = CV_STRINGIFY_ARGS ( __VA_ARGS__); \
133
+ const char * svals = # __VA_ARGS__; \
139
134
int value = val_; \
140
135
bool first = true ; \
141
136
for (int i = 0 , pos = 0 ; i < (int )(sizeof (vals)/sizeof (int )); ++i) { \
0 commit comments