libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Namespaces | Functions
pyXFunctions.cpp File Reference
#include <triton/pythonXFunctions.hpp>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  triton
 The Triton namespace.
 
namespace  triton::bindings
 The Bindings namespace.
 
namespace  triton::bindings::python
 The Python namespace.
 

Functions

PyObject * triton::bindings::python::xPyDict_New (void)
 Creates a PyDict and raises an exception if it fails.
 
PyObject * triton::bindings::python::xPyList_New (Py_ssize_t len)
 Creates a PyList and raises an exception if it fails.
 
PyObject * triton::bindings::python::xPyTuple_New (Py_ssize_t len)
 Creates a PyTuple and raises an exception if it fails.
 
PyObject * triton::bindings::python::xPyString_FromString (const char *v)
 Creates a PyString and raises an exception if it fails.
 
PyObject * triton::bindings::python::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 decremented.
 
int triton::bindings::python::xPyDict_SetItemString (PyObject *p, const char *key, PyObject *val)
 Same as PyDict_SetItemString but decrements reference on object.
 
int triton::bindings::python::xPyDict_SetItem (PyObject *p, PyObject *key, PyObject *val)
 Same as PyDict_SetItem but decrements reference on object and key.