1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Fixed bug in ifdef state machine in header parser for bindings.

This commit is contained in:
Alexander Smorkalov
2025-06-02 12:25:11 +03:00
parent e92cfb35f6
commit 5205e26663
3 changed files with 2 additions and 3 deletions
+1
View File
@@ -47,6 +47,7 @@ endforeach(m)
# header blacklist
ocv_list_filterout(opencv_hdrs "modules/.*\\\\.h$")
ocv_list_filterout(opencv_hdrs "modules/core/include/opencv2/core/fast_math.hpp")
ocv_list_filterout(opencv_hdrs "modules/core/.*/cuda/")
ocv_list_filterout(opencv_hdrs "modules/core/.*/hal/")
ocv_list_filterout(opencv_hdrs "modules/core/.*/opencl/")
-3
View File
@@ -1061,9 +1061,6 @@ class CppHeaderParser(object):
):
depth_if_0 = 0
state = SCAN
else:
depth_if_0 += 1
continue
elif l.startswith("#endif"):
depth_if_0 -= 1
if depth_if_0 == 0: