diff --git a/modules/js/generator/CMakeLists.txt b/modules/js/generator/CMakeLists.txt index d135b151eb..48e3e2f92e 100644 --- a/modules/js/generator/CMakeLists.txt +++ b/modules/js/generator/CMakeLists.txt @@ -18,6 +18,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/.*/opencl") ocv_list_filterout(opencv_hdrs "modules/core/include/opencv2/core/opengl.hpp") diff --git a/modules/python/bindings/CMakeLists.txt b/modules/python/bindings/CMakeLists.txt index c6db97bf28..c511b9bc80 100644 --- a/modules/python/bindings/CMakeLists.txt +++ b/modules/python/bindings/CMakeLists.txt @@ -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/") diff --git a/modules/python/src2/hdr_parser.py b/modules/python/src2/hdr_parser.py index b5faa61289..3d11b0ef2a 100755 --- a/modules/python/src2/hdr_parser.py +++ b/modules/python/src2/hdr_parser.py @@ -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: