symbol-processor/data/internal.h
TheBrokenRail 818b7535eb
All checks were successful
CI / Build (push) Successful in 17s
Simplify Generated Code
2025-03-30 22:49:51 -04:00

14 lines
496 B
C++

#define __PREVENT_DESTRUCTION(self) \
~self() = delete
#define __PREVENT_JUST_CONSTRUCTION(self) \
self() = delete
#define __PREVENT_CONSTRUCTION(self) \
__PREVENT_JUST_CONSTRUCTION(self); \
__PREVENT_DESTRUCTION(self)
#define __PREVENT_COPY(self) \
self(const self &) = delete; \
self &operator=(const self &) = delete
template <typename T>
static constexpr decltype(sizeof(T)) __real_sizeof() {
return sizeof(std::conditional_t<std::is_reference_v<T>, void *, T>);
}