mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Fixed bug in ifdef state machine in header parser for bindings.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user