Add some noexcept specifications. Just to experiment.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-08-07 23:06:15 +01:00
parent e40240694f
commit b640da1910
4 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ namespace EightBit {
int p = 0;
int q = 0;
opcode_decoded_t() {}
opcode_decoded_t() noexcept {}
opcode_decoded_t(const uint8_t opcode) {
x = (opcode & 0b11000000) >> 6; // 0 - 3

View File

@ -11,7 +11,7 @@ namespace EightBit {
static int load(std::ifstream& file, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
static int load(const std::string& path, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
Memory(const size_t size = 0)
Memory(const size_t size = 0) noexcept
: m_bytes(size) {
}

View File

@ -6,7 +6,7 @@
namespace EightBit {
class Ram : public Memory {
public:
Ram(const size_t size = 0)
Ram(const size_t size = 0) noexcept
: Memory(size) {
}

View File

@ -30,8 +30,8 @@ namespace EightBit {
#endif
};
uint16_t word;
register16_t() : word(0) {}
register16_t(uint16_t w) : word(w) {}
register16_t(uint8_t l, uint8_t h) : low(l), high(h) {}
register16_t() noexcept : word(0) {}
register16_t(uint16_t w) noexcept : word(w) {}
register16_t(uint8_t l, uint8_t h) noexcept : low(l), high(h) {}
} ;
}