2016-01-07 13:07:13 +01:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
2021-02-11 20:17:33 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdalign.h>
|
2016-01-07 13:07:13 +01:00
|
|
|
|
2018-06-20 11:26:10 +02:00
|
|
|
typedef int32_t BOOL;
|
2016-01-07 13:07:13 +01:00
|
|
|
|
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE 0
|
|
|
|
#endif
|
2021-02-11 20:17:33 +01:00
|
|
|
|
|
|
|
#if __cplusplus >= 201402L
|
|
|
|
#define WUT_ENUM_BITMASK_TYPE(_type) \
|
|
|
|
extern "C++" { static constexpr inline _type operator|(_type lhs, _type rhs) { \
|
|
|
|
return static_cast<_type>(static_cast<uint32_t>(lhs) | static_cast<uint32_t>(rhs)); \
|
|
|
|
} }
|
|
|
|
#else
|
|
|
|
#define WUT_ENUM_BITMASK_TYPE(_type)
|
|
|
|
#endif
|