NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
manifest_builder.hpp File Reference
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  nah::ManifestBuilder
 

Namespaces

namespace  nah
 

Macros

#define NAH_APP_MANIFEST(builder)
 
#define NAH_EMBED_MANIFEST(bytes, size)
 
#define NAH_MANIFEST_SECTION
 

Functions

ManifestBuilder nah::manifest ()
 

Macro Definition Documentation

◆ NAH_APP_MANIFEST

#define NAH_APP_MANIFEST (   builder)
Value:
namespace { \
static const auto _nah_manifest_data = (builder); \
NAH_MANIFEST_SECTION \
static const uint8_t _nah_manifest[sizeof(_nah_manifest_data)] = {}; \
} \
namespace nah { \
namespace detail { \
[[gnu::constructor]] \
void _init_manifest() { \
auto data = (builder); \
std::memcpy(const_cast<uint8_t*>(_nah_manifest), data.data(), data.size()); \
} \
} \
}

Definition at line 89 of file manifest_builder.hpp.

◆ NAH_EMBED_MANIFEST

#define NAH_EMBED_MANIFEST (   bytes,
  size 
)
Value:
NAH_MANIFEST_SECTION \
static const uint8_t _nah_manifest_data[size] = bytes

Definition at line 106 of file manifest_builder.hpp.

◆ NAH_MANIFEST_SECTION

#define NAH_MANIFEST_SECTION

Definition at line 81 of file manifest_builder.hpp.