Chess 0.0.1
A library written in c
|
Defines macros and constants for the library. More...
Go to the source code of this file.
Macros | |
#define | CHESS_CONSTEXPR const |
Expands to constexpr if available, otherwise to const . | |
#define | CHESS_DEFINE_INTEGRAL_CONSTANT(type, name, value) |
Defines a compile time integral constant. | |
#define | CHESS_ENUM(type, name) |
Defines a typed enum or a typedef enum based on the availability of typed enums in the compiler. | |
#define | CHESS_NULL NULL |
Expands to nullptr if available, otherwise to NULL . | |
#define | CHESS_ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0])) |
Computes the length of the given array. | |
Defines macros and constants for the library.
#define CHESS_ARRAY_LENGTH | ( | array | ) | (sizeof(array) / sizeof((array)[0])) |
Computes the length of the given array.
[in] | array | The array |
#define CHESS_DEFINE_INTEGRAL_CONSTANT | ( | type, | |
name, | |||
value | |||
) |
Defines a compile time integral constant.
[in] | type | The type of the constant. |
[in] | name | The name of the constant. |
[in] | value | The value of the constant. |
#define CHESS_ENUM | ( | type, | |
name | |||
) |
Defines a typed enum or a typedef enum based on the availability of typed enums in the compiler.
[in] | type | The underlying type of the enum. |
[in] | name | The name of the enum type. |