Skip to main content

luaur_code_gen/records/
module_helpers.rs

1use crate::records::label::Label;
2
3#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
4#[repr(C)]
5pub struct ModuleHelpers {
6    pub exitContinueVm: Label,
7    pub exitNoContinueVm: Label,
8    pub exitContinueVmClearNativeFlag: Label,
9    pub updatePcAndContinueInVm: Label,
10    pub return_: Label,
11    pub interrupt: Label,
12    pub continueCall: Label,
13}
14
15#[allow(non_upper_case_globals)]
16impl ModuleHelpers {
17    pub const exitContinueVm: Label = Label {
18        id: 0,
19        location: !0u32,
20    };
21    pub const exitNoContinueVm: Label = Label {
22        id: 0,
23        location: !0u32,
24    };
25    pub const exitContinueVmClearNativeFlag: Label = Label {
26        id: 0,
27        location: !0u32,
28    };
29    pub const updatePcAndContinueInVm: Label = Label {
30        id: 0,
31        location: !0u32,
32    };
33    pub const return_: Label = Label {
34        id: 0,
35        location: !0u32,
36    };
37    pub const interrupt: Label = Label {
38        id: 0,
39        location: !0u32,
40    };
41    pub const continueCall: Label = Label {
42        id: 0,
43        location: !0u32,
44    };
45}