sss_python.h revision c6278b2fa4a7ea389ed4086b2def16e0e6cbb184
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek#define sss_py_const_p(type, value) discard_const_p(type, (value))
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_CHECK(what) PyLong_Check(what)
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_FROMLONG(what) PyLong_FromLong(what)
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_ASLONG(what) PyLong_AsLong(what)
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_CHECK(what) PyInt_Check(what)
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_FROMLONG(what) PyInt_FromLong(what)
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda#define PYNUMBER_ASLONG(what) PyInt_AsLong(what)
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek/* Exceptions compatibility */
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozeksss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict);
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek/* Convenience macros */
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek#endif /* __SSS_PYTHON_H__ */