• da-woods's avatar
    Fix a few bugs in the new "cpp_locals" directive implementation (GH-4259) · 52b1b2b3
    da-woods authored
    1) Entry utility_code wasn't being imported unless the entry was visibly used. The utility code is needed for the definition even if unused. I think this is what utility_code_definition is for, but I'm not completely sure. I also had to add some calls to ensure it's used.
    
    2) CppOptionalTempCoercions weren't being moved correctly. Tested by printing from the destructor.
    
    3) cdef-class attributes weren't being created or destroyed correctly. Tested by printing from the destructor
    52b1b2b3
ModuleNode.py 172 KB