#[repr(C, packed(1))]pub struct AMX {Show 20 fields
pub base: *mut u8,
pub data: *mut u8,
pub callback: extern "C" fn(*mut AMX, i32, *mut i32, *mut i32) -> i32,
pub debug: extern "C" fn(*mut AMX) -> i32,
pub cip: i32,
pub frm: i32,
pub hea: i32,
pub hlw: i32,
pub stk: i32,
pub stp: i32,
pub flags: i32,
pub usertags: [i32; 4],
pub userdata: [*mut c_void; 4],
pub error: i32,
pub paramcount: i32,
pub pri: i32,
pub alt: i32,
pub reset_stk: i32,
pub reset_hea: i32,
pub sysreq_d: i32,
}Expand description
AMX VM instance. Each AMX loaded by the server (gamemode + filterscripts) is a pointer to this struct.
Fields§
§base: *mut u8§data: *mut u8§callback: extern "C" fn(*mut AMX, i32, *mut i32, *mut i32) -> i32§debug: extern "C" fn(*mut AMX) -> i32§cip: i32§frm: i32§hea: i32§hlw: i32§stk: i32§stp: i32§flags: i32§userdata: [*mut c_void; 4]§error: i32§paramcount: i32§pri: i32§alt: i32§reset_stk: i32§reset_hea: i32§sysreq_d: i32Auto Trait Implementations§
impl !Send for AMX
impl !Sync for AMX
impl Freeze for AMX
impl RefUnwindSafe for AMX
impl Unpin for AMX
impl UnsafeUnpin for AMX
impl UnwindSafe for AMX
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more