libER
0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
include
fd4
detail
singleton.hpp
Go to the documentation of this file.
1
9
#pragma once
10
11
#include <
detail/optref.hpp
>
12
#include <detail/preprocessor.hpp>
13
14
// LIBER_INTERFACE_CLASS specialization for ELDEN RING
15
// singleton objects in static memory. Declares the instance()
16
// method, which is defined separately as to not expose symbols
17
// See detail/singleton.h
18
#define FD4_SINGLETON_CLASS(CLASSNAME) \
19
[[nodiscard]] LIBERAPI static liber::optref<CLASSNAME> \
20
instance() noexcept; \
21
LIBER_INTERFACE_CLASS(CLASSNAME)
optref.hpp
Optional references based on std::optional.
Generated by
1.9.8