diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-29 22:59:04 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-29 22:59:04 +0300 |
commit | 13771971cfaef6356ba47668cae6ce25c5c2071f (patch) | |
tree | f2706c35edb06cbf43fc18a7c30608dfea67587f /lib/embed.cpp | |
parent | Change rcc command line (diff) | |
download | rcc-13771971cfaef6356ba47668cae6ce25c5c2071f.tar.xz |
Drop dependency on serge-sans-paille/frozen
format:
- instead of frozen::unordered_map, create two std::arrays with
the aliased names (entries) and respective data (values)
libembed:
- Resources and CompressedResources convenience classes for raw
and compressed resources respectively
- Resources can be constexpr in regular usage
- Annotate Resources::decompress accordingly
Diffstat (limited to 'lib/embed.cpp')
-rw-r--r-- | lib/embed.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/embed.cpp b/lib/embed.cpp deleted file mode 100644 index 07af38f..0000000 --- a/lib/embed.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "embed.h" - -using namespace embed; - -template <> -Resources<Compression::None>::Resources(const std::span<const unsigned char> &) -{ -} - -template <> -Resources<Compression::None>::~Resources() = default; - -template <> -[[nodiscard]] std::vector<unsigned char> Resources<Compression::None>::decompress(const std::span<const unsigned char> &entry) -{ - return { entry.begin(), entry.end() }; -} |