libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
initArchNamespace.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
12
13
14
39namespace triton {
40 namespace bindings {
41 namespace python {
42
43 void initArchNamespace(PyObject* archDict) {
46 #ifdef COMPILE_RISCV
47 xPyDict_SetItemString(archDict, "RV32", PyLong_FromUint32(triton::arch::ARCH_RV32));
48 xPyDict_SetItemString(archDict, "RV64", PyLong_FromUint32(triton::arch::ARCH_RV64));
49 #endif
52 }
53
54 }; /* python namespace */
55 }; /* bindings namespace */
56}; /* triton namespace */
void initArchNamespace(PyObject *archDict)
Initializes the ARCH python namespace.
PyObject * PyLong_FromUint32(triton::uint32 value)
Returns a pyObject from a triton::uint32.
Definition utils.cpp:322
int xPyDict_SetItemString(PyObject *p, const char *key, PyObject *val)
Same as PyDict_SetItemString but decrements reference on object.
The Triton namespace.