mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Remove get_ prefix in program_counter_before_interrupt
This commit is contained in:
parent
f1fd5859f3
commit
77eba9b637
|
@ -376,6 +376,6 @@ pub fn profiler(timer: &mut crate::timer::Timer, period: u16) -> InterruptHandle
|
|||
timer.set_enabled(true);
|
||||
|
||||
add_interrupt_handler(timer.interrupt(), |_key: &CriticalSection| {
|
||||
crate::println!("{:#010x}", crate::get_program_counter_before_interrupt());
|
||||
crate::println!("{:#010x}", crate::program_counter_before_interrupt());
|
||||
})
|
||||
}
|
||||
|
|
|
@ -408,7 +408,7 @@ mod test {
|
|||
}
|
||||
|
||||
#[inline(never)]
|
||||
pub fn get_program_counter_before_interrupt() -> u32 {
|
||||
pub(crate) fn program_counter_before_interrupt() -> u32 {
|
||||
extern "C" {
|
||||
static mut agb_rs__program_counter: u32;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue