Skip to content

Commit b15dae7

Browse files
committed
1 parent 3ee2ef5 commit b15dae7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cpp/ast.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,13 @@ def generate(self):
673673
self.namespace_stack.pop()
674674
continue
675675

676-
result = self._generate_one(token)
677-
if result:
678-
yield result
676+
try:
677+
result = self._generate_one(token)
678+
except StopIteration:
679+
pass
680+
else:
681+
if result:
682+
yield result
679683

680684
def _create_variable(self, pos_token, name, type_name, type_modifiers,
681685
ref_pointer_name_seq, templated_types=None, value=''):

0 commit comments

Comments
 (0)