Skip to content

Commit 3073ba2

Browse files
authored
Merge pull request opencv#26644 from vrabaud:opencv_js2
js: Fix C preprocessor stringification
2 parents 5baca52 + a628417 commit 3073ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/js/src/core_bindings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,15 @@ EMSCRIPTEN_BINDINGS(binding_utils)
587587
.field("epsilon", &cv::TermCriteria::epsilon);
588588

589589
#define EMSCRIPTEN_CV_SIZE(type) \
590-
emscripten::value_object<type>("#type") \
590+
emscripten::value_object<type>(#type) \
591591
.field("width", &type::width) \
592592
.field("height", &type::height);
593593

594594
EMSCRIPTEN_CV_SIZE(Size)
595595
EMSCRIPTEN_CV_SIZE(Size2f)
596596

597597
#define EMSCRIPTEN_CV_POINT(type) \
598-
emscripten::value_object<type>("#type") \
598+
emscripten::value_object<type>(#type) \
599599
.field("x", &type::x) \
600600
.field("y", &type::y); \
601601

0 commit comments

Comments
 (0)