Skip to main content

luaur_code_gen/macros/
op_a.rs

1use crate::functions::get_op_ir_data::get_op_mut;
2
3/// C++ `OP_A(inst)` — the instruction's first operand.
4#[inline]
5pub fn op_a(inst: &mut crate::records::ir_inst::IrInst) -> crate::records::ir_op::IrOp {
6    *get_op_mut(inst, 0)
7}