I added the missing HPyContextVars_* API functions.
I documented what I did in docs/api-reference/index.rst
I changed the following files then ran `make autogen, which failed:
hpy/tools/autogen/public_api.h
hpy/tools/autogen/conf.py
I added HPyContextVar_Get to NO_WRAPPER in hpy/tools/autogen/debug.py, and then needed to modify/add these files:
hyp/devel/src/runtime/ctx_contextvars.c (and added that to setup.py)
hpy/debug/src/debug_ctx.c
hpy/devel/include/hpy/runtime/ctx_funcs.h
(edit) hpy/devel/include/hpy/cpython/misc.h
I added a test. It passes. ~universal and debug mode, but fails to compile on cpython mode: it is missing the declaration for HPyContextVar_Get. Where do I need to add it?~
I added the missing
HPyContextVars_*
API functions.docs/api-reference/index.rst
hpy/tools/autogen/public_api.h
hpy/tools/autogen/conf.py
HPyContextVar_Get
toNO_WRAPPER
inhpy/tools/autogen/debug.py
, and then needed to modify/add these files:hyp/devel/src/runtime/ctx_contextvars.c
(and added that tosetup.py
)hpy/debug/src/debug_ctx.c
hpy/devel/include/hpy/runtime/ctx_funcs.h
hpy/devel/include/hpy/cpython/misc.h
HPyContextVar_Get
. Where do I need to add it?~