Skip to main content

luaur_bytecode/methods/
bc_vm_const_bc_vm_const.rs

1use crate::enums::bc_vm_const_kind::BcVmConstKind;
2use crate::records::bc_vm_const::BcVmConst;
3
4impl BcVmConst {
5    pub fn new() -> Self {
6        Self {
7            kind: BcVmConstKind::Nil,
8            value: unsafe { core::mem::zeroed() },
9        }
10    }
11}
12
13impl Default for BcVmConst {
14    fn default() -> Self {
15        Self::new()
16    }
17}