blob: a56b2691f1dd961b6db194f4e217c79f49b4d3fe [file] [log] [blame] [edit]
#pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <ittnotify.h>
#include "extensions/python.hpp"
namespace ittapi
{
struct Domain
{
PyObject_HEAD
PyObject* name;
__itt_domain* handle;
};
extern PyTypeObject DomainType;
inline Domain* domain_obj(PyObject* self);
Domain* domain_check(PyObject* self);
int exec_domain(PyObject* module);
/* Implementation of inline functions */
Domain* domain_obj(PyObject* self)
{
return pyext::pyobject_cast<Domain>(self);
}
} // namespace ittapi