mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 23:03:51 +01:00
14 lines
380 B
Cython
14 lines
380 B
Cython
|
cdef extern from * :
|
||
|
object PyCObject_FromVoidPtr(void* cobj, void *)
|
||
|
void* PyCObject_AsVoidPtr(object self)
|
||
|
|
||
|
cdef inline encapsulate (void * p) :
|
||
|
return PyCObject_FromVoidPtr(p, NULL)
|
||
|
|
||
|
cdef extern from "triqs/utility/python/extractor.hpp" :
|
||
|
|
||
|
cdef cppclass extractor "triqs::utility::python::extractor" [T] :
|
||
|
extractor (object)
|
||
|
T & operator()()
|
||
|
|