[nostalgia/core] Replace old namespace nesting with C++17 nesting

This commit is contained in:
2019-03-28 06:24:20 -05:00
parent 2830eb76b6
commit 941d714630
17 changed files with 17 additions and 52 deletions
+1 -3
View File
@@ -10,8 +10,7 @@
#include <ox/std/types.hpp>
namespace nostalgia {
namespace core {
namespace nostalgia::core {
typedef struct { uint32_t data[8]; } __attribute__((aligned(4))) Tile, Tile4;
// d-tile: double-sized tile (8bpp)
@@ -33,4 +32,3 @@ struct __attribute__((packed)) GbaImageData {
};
}
}
+1 -3
View File
@@ -17,8 +17,7 @@
#include "../gfx.hpp"
namespace nostalgia {
namespace core {
namespace nostalgia::core {
using namespace ox;
@@ -249,4 +248,3 @@ void setTile(Context *ctx, int layer, int column, int row, uint8_t tile) {
}
}
}
+1 -3
View File
@@ -12,8 +12,7 @@
#include "../media.hpp"
namespace nostalgia {
namespace core {
namespace nostalgia::core {
uint8_t *loadRom(const char*) {
// put the header in the wrong order to prevent mistaking this code for the
@@ -34,4 +33,3 @@ uint8_t *loadRom(const char*) {
}
}
}
+1 -4
View File
@@ -9,8 +9,7 @@
#include "../core.hpp"
#include "panic.hpp"
namespace nostalgia {
namespace core {
namespace nostalgia::core {
void panic(const char *msg) {
initConsole(nullptr);
@@ -23,5 +22,3 @@ void panic(const char *msg) {
}
}
}
+1 -3
View File
@@ -10,11 +10,9 @@
#include "panic.hpp"
namespace nostalgia {
namespace core {
namespace nostalgia::core {
void panic(const char *msg);
}
}