ua.i

来自「The sources of IDAPython, a plugin for I」· I 代码 · 共 28 行

I
28
字号
// Include the patched header
// All the unchecked declarations are between
// #ifndef SWIG
%include "ua.hpp"

// Small function to get the global cmd pointer
// In Python it returns an insn_t class instance
%inline {
insn_t * get_current_instruction()
{
	return &cmd;
}
}

// Get the nth operand from the insn_t class
%inline {
op_t *get_instruction_operand(insn_t *ins, int n)
{
	if (!ins)
	{
		return NULL;
	}

	return &(ins->Operands[n]);
}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?