libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
pythonXFunctions.hpp
Go to the documentation of this file.
1
2/*
3** Copyright (C) - Triton
4**
5** This program is under the terms of the Apache License 2.0.
6*/
7
8#ifndef TRITONXPYFUNCTION_H
9#define TRITONXPYFUNCTION_H
10
12
13
14
16namespace triton {
23 namespace bindings {
31 namespace python {
39 PyObject* xPyClass_New(PyObject* b, PyObject* d, PyObject* n);
40
42 PyObject* xPyDict_New(void);
43
45 PyObject* xPyList_New(Py_ssize_t len);
46
48 PyObject* xPyString_FromString(const char *v);
49
51 PyObject* xPyTuple_New(Py_ssize_t len);
52
54 int xPyDict_SetItemString(PyObject *p, const char *key, PyObject *val);
55
57 int xPyDict_SetItem(PyObject *p, PyObject* key, PyObject *val);
58
60 };
62 };
64};
65
66#endif /* TRITONXPYFUNCTION_H */
PyObject * xPyClass_New(PyObject *b, PyObject *d, PyObject *n)
Creates a PyClass and raises an exception if it fails. dict is copied in Py3 ! All references are dec...
PyObject * xPyTuple_New(Py_ssize_t len)
Creates a PyTuple and raises an exception if it fails.
PyObject * xPyString_FromString(const char *v)
Creates a PyString and raises an exception if it fails.
PyObject * xPyList_New(Py_ssize_t len)
Creates a PyList and raises an exception if it fails.
int xPyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
Same as PyDict_SetItem but decrements reference on object and key.
PyObject * xPyDict_New(void)
Creates a PyDict and raises an exception if it fails.
int xPyDict_SetItemString(PyObject *p, const char *key, PyObject *val)
Same as PyDict_SetItemString but decrements reference on object.
The Triton namespace.