Zulip Chat Archive
Stream: lean4
Topic: C FFI: How to auto free pointer
Locria Cyber (Aug 05 2022 at 11:03):
I have a Lean type that maps to a pointer. I want to free to pointer when the lean type is not referenced anymore. How to do that automatically?
Sebastian Ullrich (Aug 05 2022 at 11:08):
This is what lean_external_object
is for. I think you can find instructions on how to use it in past discussions in this channel.
Last updated: Dec 20 2023 at 11:08 UTC