Commit 13178de7 authored by Stefan Behnel's avatar Stefan Behnel

fix string constants defined in extension classes

parent 70ea30b6
......@@ -1965,7 +1965,7 @@ class PyClassDefNode(StatNode, BlockNode):
self.dict.generate_disposal_code(code)
class CClassDefNode(StatNode):
class CClassDefNode(StatNode, BlockNode):
# An extension type definition.
#
# visibility 'private' or 'public' or 'extern'
......@@ -2058,6 +2058,7 @@ class CClassDefNode(StatNode):
self.body.analyse_expressions(scope)
def generate_function_definitions(self, env, code, transforms):
self.generate_py_string_decls(self.entry.type.scope, code)
if self.body:
self.body.generate_function_definitions(
self.entry.type.scope, code, transforms)
......
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