libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
initRegNamespace.cpp File Reference
#include <triton/pythonBindings.hpp>
#include <triton/pythonObjects.hpp>
#include <triton/pythonUtils.hpp>
#include <triton/pythonXFunctions.hpp>
#include "triton/x86.spec"
#include "triton/aarch64.spec"
#include "triton/arm32.spec"

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.
 

Macros

#define REG_SPEC(UPPER_NAME, _1, _2, _3, _4, _5, _6, _7, X86_AVAIL)
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 
#define REG_SPEC(UPPER_NAME, _1, _2, _3, _4, _5, _6, _7, _8)    xPyDict_SetItemString(x8664RegistersDict, #UPPER_NAME, PyLong_FromUint32(triton::arch::ID_REG_X86_##UPPER_NAME));
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 
#define REG_SPEC(UPPER_NAME, _1, _2, _3, _4, _5)    xPyDict_SetItemString(aarch64RegistersDict, #UPPER_NAME, PyLong_FromUint32(triton::arch::ID_REG_AARCH64_##UPPER_NAME));
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 
#define SYS_REG_SPEC   REG_SPEC
 
#define REG_SPEC(UPPER_NAME, _1, _2, _3, _4, _5)    xPyDict_SetItemString(arm32RegistersDict, #UPPER_NAME, PyLong_FromUint32(triton::arch::ID_REG_ARM32_##UPPER_NAME));
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 

Functions

void triton::bindings::python::initRegNamespace (PyObject *regDict)
 Initializes the REG python namespace.
 

Macro Definition Documentation

◆ REG_SPEC

#define REG_SPEC (   UPPER_NAME,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  X86_AVAIL 
)
Value:
if (X86_AVAIL) \
xPyDict_SetItemString(x86RegistersDict, #UPPER_NAME, PyLong_FromUint32(triton::arch::ID_REG_X86_##UPPER_NAME));