1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

fix: add _ suffix to properties having reserved keyword names

This commit is contained in:
Vadim Levin
2022-12-13 20:24:57 +03:00
parent c2ecbc76ce
commit 3f5f09e730
3 changed files with 39 additions and 4 deletions
@@ -213,6 +213,17 @@ AsyncArray testAsyncException()
return p.getArrayResult();
}
struct CV_EXPORTS_W_SIMPLE ClassWithKeywordProperties {
CV_PROP_RW int lambda;
CV_PROP int except;
CV_WRAP explicit ClassWithKeywordProperties(int lambda_arg = 24, int except_arg = 42)
{
lambda = lambda_arg;
except = except_arg;
}
};
namespace nested {
CV_WRAP static inline bool testEchoBooleanFunction(bool flag) {
return flag;