mirror of
https://github.com/opencv/opencv.git
synced 2026-09-29 04:09:43 +03:00
Try to fix "enum struct" wrapping for Java
This commit is contained in:
1 parent
e058febaad
commit
6fbcb283b9
5 files changed
+37
-4
No files matched your search
@@ -634,6 +634,8 @@ class CppHeaderParser(object):
|
||||
block_type, block_name = b[self.BLOCK_TYPE], b[self.BLOCK_NAME]
|
||||
if block_type in ["file", "enum"]:
|
||||
continue
|
||||
if block_type in ["enum struct", "enum class"] and block_name == name:
|
||||
continue
|
||||
if block_type not in ["struct", "class", "namespace", "enum struct", "enum class"]:
|
||||
print("Error at %d: there are non-valid entries in the current block stack %s" % (self.lineno, self.block_stack))
|
||||
sys.exit(-1)
|
||||
|
||||
Reference in new issue
Block a user