junrushao opened a new pull request, #447: URL: https://github.com/apache/tvm-ffi/pull/447
Generalize the "missing object" pattern from Map-specific FFI function into a first-class C API. This allows direct access to the invalid/missing sentinel without going through the function registry, and exposes it as a `MISSING` global in the Cython `core` module. - Add `TVMFFIAnyGetInvalidObject` to `c_api.h` and implement in `container.cc` - Declare in Cython `base.pxi` and create `MISSING` global in `core.pyx` - Add `MISSING` to `core.pyi` type stub - Remove `ffi.MapGetMissingObject` from the FFI function registry - Update `container.py` to import `MISSING` from `core` instead of `_ffi_api` - Add C++ and Python unit tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
