Wrap ANN_MLP class into Python
This commit is contained in:
@@ -445,6 +445,12 @@ class CppHeaderParser(object):
|
||||
|
||||
rettype, funcname, modlist, argno = self.parse_arg(decl_start, -1)
|
||||
|
||||
# determine original return type, hack for return types with underscore
|
||||
original_type = None
|
||||
i = decl_start.rfind(funcname)
|
||||
if i > 0:
|
||||
original_type = decl_start[:i].replace("&", "").replace("const", "").strip()
|
||||
|
||||
if argno >= 0:
|
||||
classname = top[1]
|
||||
if rettype == classname or rettype == "~" + classname:
|
||||
@@ -560,7 +566,10 @@ class CppHeaderParser(object):
|
||||
if static_method:
|
||||
func_modlist.append("/S")
|
||||
|
||||
return [funcname, rettype, func_modlist, args]
|
||||
if original_type is None:
|
||||
return [funcname, rettype, func_modlist, args]
|
||||
else:
|
||||
return [funcname, rettype, func_modlist, args, original_type]
|
||||
|
||||
def get_dotted_name(self, name):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user