From 77eba9b6377b9b04a31cad280eada36e4a4dedce Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 23 Mar 2022 20:39:41 +0000 Subject: [PATCH] Remove get_ prefix in program_counter_before_interrupt --- agb/src/interrupt.rs | 2 +- agb/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index 0d660860..9aed669e 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -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()); }) } diff --git a/agb/src/lib.rs b/agb/src/lib.rs index 8f30d2c1..245bc690 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -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; }