mal-packet-weaver
C++20 packet serialization/deserialization library.
|
Defines macros and constants for various purposes. More...
Go to the source code of this file.
Macros | |
#define | MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_EX(ENUM_TYPE, ENUM_TYPE_UNDERLYING) |
This macro is used to declare the bitwise operators for an enum class so it is easier to use it as a bitfield with a specified underlying type. | |
#define | MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS(ENUM_TYPE) MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_EX(ENUM_TYPE, std::underlying_type_t<ENUM_TYPE>) |
This macro is used to declare the bitwise operators for an enum class so it is easier to use it as a bitfield with the default underlying type. | |
#define | MAL_TOOLKIT_DECLARE_ENUM_BIT_FUNCTIONS(ENUM_TYPE) |
This macro is used to declare the bitwise functions for an enum class so it is easier to use it as a bitfield. | |
#define | MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_AND_FUNCTIONS(ENUM_TYPE) |
This macro is used to declare both the bitwise operators and functions for an enum class so it is easier to use it as a bitfield. | |
Defines macros and constants for various purposes.
Definition in file macro.hpp.
#define MAL_TOOLKIT_DECLARE_ENUM_BIT_FUNCTIONS | ( | ENUM_TYPE | ) |
This macro is used to declare the bitwise functions for an enum class so it is easier to use it as a bitfield.
ENUM_TYPE | The enum class type. |
#define MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS | ( | ENUM_TYPE | ) | MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_EX(ENUM_TYPE, std::underlying_type_t<ENUM_TYPE>) |
#define MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_AND_FUNCTIONS | ( | ENUM_TYPE | ) |
This macro is used to declare both the bitwise operators and functions for an enum class so it is easier to use it as a bitfield.
ENUM_TYPE | The enum class type. |
#define MAL_TOOLKIT_DECLARE_ENUM_BIT_OPERATORS_EX | ( | ENUM_TYPE, | |
ENUM_TYPE_UNDERLYING ) |
This macro is used to declare the bitwise operators for an enum class so it is easier to use it as a bitfield with a specified underlying type.
ENUM_TYPE | The enum class type. |
ENUM_TYPE_UNDERLYING | The underlying type of the enum class. |