Debian Codegraph @

lib_pypy/hpy/devel/src/runtime/ctx_contextvar.c

raw symbols SCIP
1 #include <Python.h>
2 #include "hpy.h"
3
4 #ifndef HPY_ABI_CPYTHON
5 // for _h2py and _py2h
6 # include "handles.h"
7 #endif
8
9 _HPy_HIDDEN int32_t
10 ctx_ContextVar_Get(HPyContext *ctx, HPy context_var, HPy default_value, HPy *result)
11 {
12 PyObject * py_result;
13 int32_t ret = PyContextVar_Get(_h2py(context_var), _h2py(default_value), &py_result);
14 *result = _py2h(py_result);
15 return ret;
16 }