17 lines
379 B
C++
17 lines
379 B
C++
#pragma once
|
|
#include <Mod/Context.hpp>
|
|
#include <Mod/Base.hpp>
|
|
#include <memory>
|
|
|
|
namespace vl::mod {
|
|
|
|
struct Registration {
|
|
const void* magic;
|
|
std::unique_ptr<Base> (*factory)(const Context&);
|
|
};
|
|
|
|
inline constexpr std::uintptr_t kModRegMagicRaw = 0xBADC0FFEEULL;
|
|
inline const void* kModRegMagic = reinterpret_cast<const void*>(kModRegMagicRaw);
|
|
|
|
} // namespace vl::log
|