Skip to main content

luaur_compiler/records/
inline_arg.rs

1use luaur_ast::records::ast_expr::AstExpr;
2use luaur_ast::records::ast_local::AstLocal;
3
4use crate::records::constant::Constant;
5
6#[derive(Debug, Clone)]
7pub struct InlineArg {
8    pub(crate) local: *mut AstLocal,
9    pub(crate) reg: u8,
10    pub(crate) value: Constant,
11    pub(crate) allocpc: u32,
12    pub(crate) init: *mut AstExpr,
13}
14
15impl Default for InlineArg {
16    fn default() -> Self {
17        Self {
18            local: core::ptr::null_mut(),
19            reg: 0,
20            value: Constant::default(),
21            allocpc: 0,
22            init: core::ptr::null_mut(),
23        }
24    }
25}