Commit a2888c25 authored by gsamain's avatar gsamain

Make cypclass utility code appear before type definitions

parent ed0ba259
......@@ -1016,7 +1016,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if type.is_cyp_class:
code.globalstate.use_utility_code(
UtilityCode.load_cached("CythonReferenceCounting", "ObjectHandling.c"))
UtilityCode.load("CythonReferenceCounting", "ObjectHandling.c", proto_block="utility_code_proto_before_types"))
def generate_enum_definition(self, entry, code):
code.mark_pos(entry.pos)
......
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