1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#![no_std] #[derive(Eq, PartialEq, Copy, Clone, Debug, Hash)] pub enum ProgramState { Normal, Resident, } impl Default for ProgramState { fn default() -> Self { ProgramState::Normal } } pub static mut PROGRAM_STATE: ProgramState = ProgramState::Normal; pub static mut ARGUMENTS: Option<&[*const cty::c_char]> = None;