Skip to content

Commit 9d99f0d

Browse files
author
roman_yakovenko
committed
adding convenience function: to_list
1 parent ab66bd5 commit 9d99f0d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pygccxml/declarations/mdecl_wrapper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,9 @@ def __getattr__( self, name ):
8888

8989
def __contains__( self, item ):
9090
return item in self.declarations
91+
92+
def to_list(self):
93+
l = []
94+
for d in self.declarations:
95+
l.append( d )
96+
return l

0 commit comments

Comments
 (0)