Skip to content

Commit

Permalink
fixup changes from PR hpyproject#407
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Feb 27, 2023
1 parent 2d61264 commit f1d1e5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/api-reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ write but in order to avoid duplicated effort, they are defined by HPy.

inline-helpers


6 changes: 3 additions & 3 deletions docs/contributing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Adding New API
==============

1. Add the function to ``hpy/tools/autogen/public_api.h`` and
``hpy/tools/autogen/conf.py``. If the CPython equivalent function name is
not the same (after removing the leading ``H``, add appropriate CPython function
mapping in ``hpy/tools/autogen/conf.py``, otherwise the mapping can be ``None``.
``hpy/tools/autogen/conf.py``. If the CPython equivalent function name is
not the same (after removing the leading ``H``, add appropriate CPython function
mapping in ``hpy/tools/autogen/conf.py``, otherwise the mapping can be ``None``.

2. If the function cannot be autogenerated (i.e. the mapping does not exist),
you must write the wrapper by hand. Add the function to ``NO_WRAPPER`` in
Expand Down
4 changes: 2 additions & 2 deletions hpy/tools/autogen/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
'HPyBool_FromBool': 'PyBool_FromLong',
'HPy_Compile_s': None,
'HPy_EvalCode': 'PyEval_EvalCode',
'HPyContextVar_New': None,
'HPyContextVar_New': 'PyContextVar_New',
'HPyContextVar_Get': None,
'HPyContextVar_Set': None,
'HPyContextVar_Set': 'PyContextVar_Set',
}

0 comments on commit f1d1e5b

Please sign in to comment.