diff --git a/Components/9918/9918.hpp b/Components/9918/9918.hpp index a3a80ea66..d49a33fad 100644 --- a/Components/9918/9918.hpp +++ b/Components/9918/9918.hpp @@ -14,8 +14,7 @@ #include -namespace TI { -namespace TMS { +namespace TI::TMS { enum Personality { TMS9918A, // includes the 9928 and 9929; set TV standard and output device as desired. @@ -36,13 +35,11 @@ enum class TVStandard { NTSC }; -} } #include "Implementation/9918Base.hpp" -namespace TI { -namespace TMS { +namespace TI::TMS { /*! Provides emulation of the TMS9918a, TMS9928 and TMS9929. Likely in the future to be the @@ -127,7 +124,6 @@ template class TMS9918: private Base { bool get_interrupt_line() const; }; -} } #endif /* TMS9918_hpp */ diff --git a/Components/9918/Implementation/9918Base.hpp b/Components/9918/Implementation/9918Base.hpp index f2d4d574b..26e9e4fad 100644 --- a/Components/9918/Implementation/9918Base.hpp +++ b/Components/9918/Implementation/9918Base.hpp @@ -28,8 +28,7 @@ #include #include -namespace TI { -namespace TMS { +namespace TI::TMS { constexpr uint8_t StatusInterrupt = 0x80; constexpr uint8_t StatusSpriteOverflow = 0x40; @@ -622,7 +621,6 @@ template struct Base: public Storage { #include "Fetch.hpp" #include "Draw.hpp" -} } #endif /* TMS9918Base_hpp */ diff --git a/Components/9918/Implementation/AccessEnums.hpp b/Components/9918/Implementation/AccessEnums.hpp index d5e581b7f..aa2328cc2 100644 --- a/Components/9918/Implementation/AccessEnums.hpp +++ b/Components/9918/Implementation/AccessEnums.hpp @@ -10,8 +10,7 @@ #define AccessEnums_hpp -namespace TI { -namespace TMS { +namespace TI::TMS { // The screen mode is a necessary predecessor to picking the line mode, // which is the thing latched per line. @@ -108,7 +107,6 @@ enum class SpriteMode { MasterSystem, }; -} } #endif /* AccessEnums_hpp */ diff --git a/Components/9918/Implementation/ClockConverter.hpp b/Components/9918/Implementation/ClockConverter.hpp index 5d961a184..89427c439 100644 --- a/Components/9918/Implementation/ClockConverter.hpp +++ b/Components/9918/Implementation/ClockConverter.hpp @@ -12,8 +12,7 @@ #include "../9918.hpp" #include "PersonalityTraits.hpp" -namespace TI { -namespace TMS { +namespace TI::TMS { enum class Clock { Internal, @@ -215,7 +214,6 @@ template struct LineLayout -namespace TI { -namespace TMS { +namespace TI::TMS { /// A container for personality-specific storage; see specific instances below. template struct Storage { @@ -493,7 +492,6 @@ template struct Storage