Skip to content

Commit

Permalink
Add common/arch.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 34a82a3 commit 7f66eaa
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/common/developer/arch.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,26 @@
arch.h
######

.. cpp:namespace:: Dyninst
.. code:: cpp
#if defined(arch_power)
#include "arch-power.h"
using namespace NS_power;
#elif defined(i386_unknown_nt4_0) \
|| defined(arch_x86) \
|| defined(arch_x86_64)
#include "arch-x86.h"
using namespace NS_x86;
#elif defined(arch_aarch64)
#include "arch-aarch64.h"
using namespace NS_aarch64;
#else
#error "unknown architecture"
#endif
.. c:macro:: GET_PTR(insn, gen)
.. c:macro:: SET_PTR(insn, gen)
.. c:macro:: REGET_PTR(insn, gen)

0 comments on commit 7f66eaa

Please sign in to comment.