Go to the documentation of this file. 1 #ifndef OALPLUS_ALC_API_CONFIG_HPP
9 #define OALPLUS_ALC_API_CONFIG_HPP
11 #include "../config/basic.hpp"
14 #ifndef OALPLUS_HAS_ALC
15 #if defined(ALC_NO_ERROR)
16 #define OALPLUS_HAS_ALC 1
18 #define OALPLUS_HAS_ALC 0
20 #endif // OALPLUS_HAS_ALC
35 static constexpr
bool has_api =
true;
44 using enum_type = ALCenum;
47 using char_type = ALCchar;
50 using bool_type = ALCboolean;
53 using int_type = ALCint;
56 using uint_type = ALCuint;
59 using size_type = ALCsizei;
61 static constexpr
bool has_api =
false;
64 using enum_type = int;
65 using char_type = char;
66 using bool_type = bool;
68 using uint_type = unsigned;
69 using size_type = std::intptr_t;
72 static constexpr
auto bool_true(bool_type b) noexcept ->
bool {
80 static constexpr
auto error_code_no_error(enum_type ec) noexcept ->
bool {
82 return ec == ALC_NO_ERROR;
84 EAGINE_MAYBE_UNUSED(ec);
92 #endif // OALPLUS_ALC_API_CONFIG_HPP
Collection of aliases for ALC types.
Definition: config.hpp:31
void * void_ptr_type
Untyped pointer type.
Definition: config.hpp:33
Class representing "none" / "nothing" values.
Definition: nothing.hpp:17
AL-related code is placed in this namespace.
Definition: oalplus.hpp:11