[nostalgia] Make almost everyting noexcept

This commit is contained in:
2021-04-20 01:56:41 -05:00
parent 161780cb91
commit 6ece0b6f9b
22 changed files with 139 additions and 136 deletions
+7 -7
View File
@@ -10,35 +10,35 @@
namespace nostalgia::core {
ox::Error initGfx(Context*) {
ox::Error initGfx(Context*) noexcept {
return OxError(1);
}
ox::Error shutdownGfx(Context*) {
ox::Error shutdownGfx(Context*) noexcept {
return OxError(1);
}
ox::Error initConsole(Context*) {
ox::Error initConsole(Context*) noexcept {
return OxError(1);
}
ox::Error loadBgTileSheet(Context*,
int,
ox::FileAddress,
ox::FileAddress) {
ox::FileAddress) noexcept {
return OxError(1);
}
void puts(Context *ctx, int column, int row, const char *str) {
void puts(Context *ctx, int column, int row, const char *str) noexcept {
for (int i = 0; str[i]; i++) {
setTile(ctx, 0, column + i, row, static_cast<uint8_t>(charMap[static_cast<int>(str[i])]));
}
}
void setTile(Context*, int, int, int, uint8_t) {
void setTile(Context*, int, int, int, uint8_t) noexcept {
}
void setSprite(Context*, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned) {
void setSprite(Context*, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned) noexcept {
}
}