Skip to main content

luaur_vm/enums/
lua_gc_op.rs

1#[allow(non_camel_case_types)]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
3#[repr(i32)]
4pub enum lua_GCOp {
5    LUA_GCSTOP = 0,
6    LUA_GCRESTART = 1,
7    LUA_GCCOLLECT = 2,
8    LUA_GCCOUNT = 3,
9    LUA_GCCOUNTB = 4,
10    LUA_GCISRUNNING = 5,
11    LUA_GCSTEP = 6,
12    LUA_GCSETGOAL = 7,
13    LUA_GCSETSTEPMUL = 8,
14    LUA_GCSETSTEPSIZE = 9,
15}
16
17#[allow(non_upper_case_globals)]
18impl lua_GCOp {
19    pub const LUA_GCSTOP: Self = Self::LUA_GCSTOP;
20    pub const LUA_GCRESTART: Self = Self::LUA_GCRESTART;
21    pub const LUA_GCCOLLECT: Self = Self::LUA_GCCOLLECT;
22    pub const LUA_GCCOUNT: Self = Self::LUA_GCCOUNT;
23    pub const LUA_GCCOUNTB: Self = Self::LUA_GCCOUNTB;
24    pub const LUA_GCISRUNNING: Self = Self::LUA_GCISRUNNING;
25    pub const LUA_GCSTEP: Self = Self::LUA_GCSTEP;
26    pub const LUA_GCSETGOAL: Self = Self::LUA_GCSETGOAL;
27    pub const LUA_GCSETSTEPMUL: Self = Self::LUA_GCSETSTEPMUL;
28    pub const LUA_GCSETSTEPSIZE: Self = Self::LUA_GCSETSTEPSIZE;
29}