Hi Sam,
I think your analysis is broadly right. I think what you need is to make the relevant utility code appear in the section 'utility_code_proto_before_types' https://github.com/cython/cython/blob/fa8db66368a9527c8df441a0bbfee714eb795930/Cython/Compiler/Code.py#L1121.
I don't immediately know how to do that (but I'm sure it's possible!)
I'm sure a PR to do that would be welcome.
David
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cython-users/c3a8eab9-2e6a-4ee9-9575-e7a6d7fb9e6fn%40googlegroups.com.
I think your analysis is broadly right. I think what you need is to make the relevant utility code appear in the section 'utility_code_proto_before_types' https://github.com/cython/cython/blob/fa8db66368a9527c8df441a0bbfee714eb795930/Cython/Compiler/Code.py#L1121.
I don't immediately know how to do that (but I'm sure it's possible!)
I'm sure a PR to do that would be welcome.
David