text: #include <Python.h>
  #include "hpy.h"
  #include "handles.h"
  #include "ctx_misc.h"
  
  HPyAPI_STORAGE HPy
  ctx_FromPyObject(HPyContext *ctx, cpy_PyObject *obj)
  {
      Py_INCREF(obj);
      return _py2h(obj);
  }
  
  HPyAPI_STORAGE cpy_PyObject *
  ctx_AsPyObject(HPyContext *ctx, HPy h)
  {
      PyObject *obj = _h2py(h);
      Py_INCREF(obj);
      return obj;
  }
  
  HPyAPI_STORAGE void
  ctx_Close(HPyContext *ctx, HPy h)
  {
      PyObject *obj = _h2py(h);
      Py_XDECREF(obj);
  }
  
  HPyAPI_STORAGE HPy
  ctx_Dup(HPyContext *ctx, HPy h)
  {
      PyObject *obj = _h2py(h);
      Py_XINCREF(obj);
      return _py2h(obj);
  }
  
  HPyAPI_STORAGE void
  ctx_FatalError(HPyContext *ctx, const char *message)
  {
      Py_FatalError(message);
  }
  