Skip to content
Snippets Groups Projects
Commit 0cdf3f26 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #3249: Wouter experiences weird checkout problems with this file. See if...

Task #3249: Wouter experiences weird checkout problems with this file. See if remove/add cycle helps.
parent c9506b9a
No related branches found
No related tags found
No related merge requests found
#ifndef _AUX_H_INCLUDED
#define _AUX_H_INCLUDED
/*!
\file aux.h
\ingroup pybdsm
\brief Miscellaneous usefull routines
*/
#include <boost/version.hpp>
#include <boost/python.hpp>
#include <boost/python/detail/api_placeholder.hpp>
#if BOOST_VERSION > 103200
#define ADD_PROPERTY1(name, get, doc) .add_property(name, get, doc)
#define ADD_PROPERTY2(name, get, set, doc) .add_property(name, get, set, doc)
#else
#define ADD_PROPERTY1(name, get, doc) .add_property(name, get)
#define ADD_PROPERTY2(name, get, set, doc) .add_property(name, get, set)
#endif
inline void py_assert(bool cond, PyObject *exc, const char *msg)
{
if(!cond) {
PyErr_SetString(exc, msg);
throw boost::python::error_already_set();
}
}
#endif // _AUX_H_INCLUDED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment