mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Fix C preprocessor stringification
This commit is contained in:
parent
3fbaad36d7
commit
a628417f2a
@ -584,7 +584,7 @@ EMSCRIPTEN_BINDINGS(binding_utils)
|
|||||||
.field("epsilon", &cv::TermCriteria::epsilon);
|
.field("epsilon", &cv::TermCriteria::epsilon);
|
||||||
|
|
||||||
#define EMSCRIPTEN_CV_SIZE(type) \
|
#define EMSCRIPTEN_CV_SIZE(type) \
|
||||||
emscripten::value_object<type>("#type") \
|
emscripten::value_object<type>(#type) \
|
||||||
.field("width", &type::width) \
|
.field("width", &type::width) \
|
||||||
.field("height", &type::height);
|
.field("height", &type::height);
|
||||||
|
|
||||||
@ -592,7 +592,7 @@ EMSCRIPTEN_BINDINGS(binding_utils)
|
|||||||
EMSCRIPTEN_CV_SIZE(Size2f)
|
EMSCRIPTEN_CV_SIZE(Size2f)
|
||||||
|
|
||||||
#define EMSCRIPTEN_CV_POINT(type) \
|
#define EMSCRIPTEN_CV_POINT(type) \
|
||||||
emscripten::value_object<type>("#type") \
|
emscripten::value_object<type>(#type) \
|
||||||
.field("x", &type::x) \
|
.field("x", &type::x) \
|
||||||
.field("y", &type::y); \
|
.field("y", &type::y); \
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user