dont use report_api inside the generation macro - just for debugging

This commit is contained in:
bunnie 2024-06-02 02:39:30 +08:00
parent 9fe1933611
commit 23f2b117ab

View file

@ -134,10 +134,12 @@ macro_rules! bio_code {
static $name_start: *const u8;
static $name_end: *const u8;
}
/*
unsafe {
report_api($name_start as u32);
report_api($name_end as u32);
}
*/
// skip the first 4 bytes, as they contain the loading offset
unsafe { core::slice::from_raw_parts($name_start.add(4), ($name_end as usize) - ($name_start as usize) - 4)}
}