Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
py-rope.hh
Go to the documentation of this file.
00001  // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
00002 #ifndef __RAPICORN_PY_ROPE_HH__
00003 #define __RAPICORN_PY_ROPE_HH__
00004 
00005 #include <Python.h> // must be included first to configure std headers
00006 
00007 #include <rapicorn.hh>
00008 using namespace Rapicorn;
00009 
00010 // convenience casts
00011 #define PYCF(func)      ((PyCFunction) func)
00012 #define PYTO(ooo)       ({ union { PyTypeObject *t; PyObject *o; } u; u.t = (ooo); u.o; })
00013 #define PYWO(ooo)       ({ union { PyWindow *w; PyObject *o; } u; u.w = (ooo); u.o; })
00014 #define PYS(cchr)       const_cast<char*> (cchr)
00015 
00016 
00017 // convenience functions
00018 #define None_INCREF()   ({ Py_INCREF (Py_None); Py_None; })
00019 
00020 
00021 #endif /* __RAPICORN_PY_ROPE_HH__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines