Unicorn rust bindings improvements
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
#![allow(non_camel_case_types)]
|
||||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
// ARM64 registers
|
||||
#[repr(C)]
|
||||
#[derive(PartialEq, Debug, Clone, Copy)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum RegisterARM64 {
|
||||
INVALID = 0,
|
||||
X29 = 1,
|
||||
@ -319,3 +317,9 @@ impl RegisterARM64 {
|
||||
pub const FP: RegisterARM64 = RegisterARM64::X29;
|
||||
pub const LR: RegisterARM64 = RegisterARM64::X30;
|
||||
}
|
||||
|
||||
impl From<RegisterARM64> for i32 {
|
||||
fn from(r: RegisterARM64) -> Self {
|
||||
r as i32
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user