Commit 535f1fb2 authored by Andrey Kamaev's avatar Andrey Kamaev

Hack to stop parsing of problematic CvStatModel::train definition

parent 0570aa64
...@@ -992,6 +992,11 @@ class DefinitionParser(object): ...@@ -992,6 +992,11 @@ class DefinitionParser(object):
return rv return rv
def _parse_signature(self): def _parse_signature(self):
if r'CvStatModel::train' in self.definition:
# hack to skip parsing of problematic definition
self.pos = self.end
return [ArgumentDefExpr("const Mat&", "train_data", None), ArgumentDefExpr(None, self.definition[self.definition.find("["):-1], None)], False, True
self.skip_ws() self.skip_ws()
if not self.skip_string('('): if not self.skip_string('('):
self.fail('expected parentheses for function') self.fail('expected parentheses for function')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment