Skip to main content

luaur_code_gen/records/
array_value_entry.rs

1use crate::records::ir_op::IrOp;
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(C)]
5pub struct ArrayValueEntry {
6    pub pointer: u32,
7    pub offset: IrOp,
8    pub value: u32,
9}
10
11#[allow(non_upper_case_globals)]
12impl ArrayValueEntry {
13    pub const pointer: u32 = 0;
14    pub const value: u32 = 0;
15}
16
17impl Default for ArrayValueEntry {
18    fn default() -> Self {
19        Self {
20            pointer: 0,
21            offset: IrOp { kind_and_index: 0 },
22            value: 0,
23        }
24    }
25}