OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine/embed_self.cpp

Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt

#include <eagine/embed.hpp>
#include <iostream>
auto main() -> int {
using namespace eagine;
std::cout << hexdump(embed(EAGINE_ID(self), __FILE__));
return 0;
}
#define EAGINE_ID(NAME)
Macro for constructing instances of eagine::identifier.
Definition: identifier.hpp:353
Common code is placed in this namespace.
Definition: eagine.hpp:21
Class for encoding byte blocks into hexdump-like format.
Definition: hexdump.hpp:29
static auto embed(identifier res_id, string_view src_path) noexcept -> embedded_resource
Triggers the embedding of data from a file on the specified path.
Definition: embed.hpp:105

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).