text: /*
   * MIT License
   *
   * Copyright (c) 2019-2022 Albin Johansson
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in all
   * copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   * SOFTWARE.
   */
  
  #ifndef CENTURION_DETAIL_SDL_VERSION_AT_LEAST_HPP_
  #define CENTURION_DETAIL_SDL_VERSION_AT_LEAST_HPP_
  
  #include <SDL.h>
  
  #include "../version.hpp"
  
  /// \cond FALSE
  
  namespace cen::detail {
  
  [[nodiscard]] constexpr auto sdl_version_at_least(const int major,
                                                    const int minor,
                                                    const int patch) noexcept -> bool
  {
    return SDL_COMPILEDVERSION >= SDL_VERSIONNUM(major, minor, patch);
  }
  
  }  // namespace cen::detail
  
  /// \endcond
  
  #endif  // CENTURION_DETAIL_SDL_VERSION_AT_LEAST_HPP_
  