Skip to main content

luaur_code_gen/records/
loop_info.rs

1use crate::records::ir_op::IrOp;
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(C)]
5pub struct LoopInfo {
6    pub step: IrOp,
7    pub startpc: core::ffi::c_int,
8}
9
10impl Default for LoopInfo {
11    fn default() -> Self {
12        Self {
13            step: IrOp { kind_and_index: 0 },
14            startpc: 0,
15        }
16    }
17}