AVR8 opcode decoder
This commit is contained in:
14
src/Helpers/FixedString.hpp
Normal file
14
src/Helpers/FixedString.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <algorithm>
|
||||
|
||||
template <std::size_t length>
|
||||
struct FixedString
|
||||
{
|
||||
char value[length];
|
||||
|
||||
constexpr FixedString(const char (&str)[length]) {
|
||||
std::copy_n(str, length, this->value);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user