Warning, file /include/boost/python/detail/decref_guard.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005 #ifndef DECREF_GUARD_DWA20021220_HPP
0006 # define DECREF_GUARD_DWA20021220_HPP
0007
0008 namespace boost { namespace python { namespace detail {
0009
0010 struct decref_guard
0011 {
0012 decref_guard(PyObject* o) : obj(o) {}
0013 ~decref_guard() { Py_XDECREF(obj); }
0014 void cancel() { obj = 0; }
0015 private:
0016 PyObject* obj;
0017 };
0018
0019 }}}
0020
0021 #endif