libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
initOpcodesNamespace.cpp
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
14
15
16
2185namespace triton {
2186 namespace bindings {
2187 namespace python {
2188
2189 void initOpcodesNamespace(PyObject* opcodesDict) {
2190 PyDict_Clear(opcodesDict);
2191
2192 PyObject* x86OpcodesDict = xPyDict_New();
2193
3489
3490 PyObject* x86OpcodesDictClass = xPyClass_New(nullptr, x86OpcodesDict, xPyString_FromString("X86"));
3491 xPyDict_SetItemString(opcodesDict, "X86", x86OpcodesDictClass);
3492
3493 PyObject* Aarch64OpcodesDict = xPyDict_New();
3494
3911
3912 PyObject* Aarch64OpcodesDictClass = xPyClass_New(nullptr, Aarch64OpcodesDict, xPyString_FromString("AARCH64"));
3913 xPyDict_SetItemString(opcodesDict, "AARCH64", Aarch64OpcodesDictClass);
3914
3915 PyObject* arm32OpcodesDict = xPyDict_New();
3916
4055 xPyDict_