diff --git a/src/mmio.rs b/src/mmio.rs index 23a31d1..3825dea 100644 --- a/src/mmio.rs +++ b/src/mmio.rs @@ -203,12 +203,14 @@ def_mmio!(0x0500_0200 = OBJ_PALETTE: VolBlock; "Object t #[inline] #[must_use] +#[cfg_attr(feature="track_caller", track_caller)] pub const fn bg_palbank(bank: usize) -> VolBlock { let u = BG_PALETTE.index(bank * 16).as_usize(); unsafe { VolBlock::new(u) } } #[inline] #[must_use] +#[cfg_attr(feature="track_caller", track_caller)] pub const fn obj_palbank(bank: usize) -> VolBlock { let u = OBJ_PALETTE.index(bank * 16).as_usize(); unsafe { VolBlock::new(u) }