diff options
author | 2021-12-01 08:05:33 -0500 | |
---|---|---|
committer | 2021-12-01 08:05:58 -0500 | |
commit | e3256b55435c59edfedeca045b4fa13eef6c9a43 (patch) | |
tree | ce8f1cad03338ac4a109687e489271d18e9c350d /src/devices/cpu/g65816/g65816.h | |
parent | 6fcd0b90f21251afd60628fd7e5320ca11e6782c (diff) |
g65816: Replace #ifdef UNUSED_FUNCTION with [[maybe_unused]] to deter code rot
Diffstat (limited to 'src/devices/cpu/g65816/g65816.h')
-rw-r--r-- | src/devices/cpu/g65816/g65816.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/cpu/g65816/g65816.h b/src/devices/cpu/g65816/g65816.h index 3c6acf9f6d1..b21845e76ec 100644 --- a/src/devices/cpu/g65816/g65816.h +++ b/src/devices/cpu/g65816/g65816.h @@ -140,10 +140,8 @@ protected: int bus_5A22_cycle_burst(unsigned addr); unsigned g65816_get_pc(); void g65816_set_pc(unsigned val); -#ifdef UNUSED_FUNCTION - unsigned g65816_get_sp(); - void g65816_set_sp(unsigned val); -#endif + [[maybe_unused]] unsigned g65816_get_sp(); + [[maybe_unused]] void g65816_set_sp(unsigned val); public: unsigned g65816_get_reg(int regnum); void g65816_set_reg(int regnum, unsigned value); |