Move all core types into namespaces (#1886)

* Reorganize namespaces

- Most types are now moved into the `melonDS` namespace
- Only good chance to do this for a while, since a big refactor is next

* Fix the build
This commit is contained in:
Jesse Talavera-Greenberg
2023-11-25 12:32:09 -05:00
committed by GitHub
parent 651b0f680c
commit 346dd4006e
178 changed files with 529 additions and 268 deletions

View File

@ -5,6 +5,7 @@
namespace Gdb
{
using namespace melonDS;
enum class Register : int
{
r0,

View File

@ -8,6 +8,7 @@
#include "GdbProto.h"
using namespace melonDS;
using Platform::Log;
using Platform::LogLevel;

View File

@ -24,6 +24,7 @@
#include "GdbProto.h"
using namespace melonDS;
using Platform::Log;
using Platform::LogLevel;

View File

@ -13,6 +13,7 @@
namespace Gdb {
using namespace melonDS;
constexpr int GDBPROTO_BUFFER_CAPACITY = 1024+128;
extern u8 Cmdbuf[GDBPROTO_BUFFER_CAPACITY];

View File

@ -25,6 +25,7 @@
#include "../Platform.h"
#include "GdbProto.h"
using namespace melonDS;
using Platform::Log;
using Platform::LogLevel;

View File

@ -13,6 +13,7 @@
namespace Gdb
{
using namespace melonDS;
enum class TgtStatus
{
NoEvent,

View File

@ -9,6 +9,8 @@ extern "C"
#include <stdint.h>
namespace melonDS
{
inline static uint8_t hex2nyb(uint8_t v)
{
if (v >= '0' && v <= '9') return v - '0';
@ -71,5 +73,6 @@ inline static uint32_t unhex32(const uint8_t* src)
}
#endif
}
#endif