#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
struct AlignFlags {
uint8_t bits;
explicit operator bool() const {
return !!bits;
}
AlignFlags operator~() const {
return {static_cast<decltype(bits)>(~bits)};
}
AlignFlags operator|(const AlignFlags& other) const {
return {static_cast<decltype(bits)>(this->bits | other.bits)};
}
AlignFlags& operator|=(const AlignFlags& other) {
*this = (*this | other);
return *this;
}
AlignFlags operator&(const AlignFlags& other) const {
return {static_cast<decltype(bits)>(this->bits & other.bits)};
}
AlignFlags& operator&=(const AlignFlags& other) {
*this = (*this & other);
return *this;
}
AlignFlags operator^(const AlignFlags& other) const {
return {static_cast<decltype(bits)>(this->bits ^ other.bits)};
}
AlignFlags& operator^=(const AlignFlags& other) {
*this = (*this ^ other);
return *this;
}
};
static const AlignFlags AlignFlags_AUTO = AlignFlags{ 0 };
static const AlignFlags AlignFlags_NORMAL = AlignFlags{ 1 };
static const AlignFlags AlignFlags_START = AlignFlags{ (1 << 1) };
static const AlignFlags AlignFlags_END = AlignFlags{ (1 << 2) };
static const AlignFlags AlignFlags_FLEX_START = AlignFlags{ (1 << 3) };
extern "C" {
void root(AlignFlags flags);
}