Files
raylib-cpp/include/raylib.hpp
2023-07-03 12:34:04 -04:00

30 lines
642 B
C++

/**
* C++ header to wrap raylib.h.
*/
#ifndef RAYLIB_CPP_INCLUDE_RAYLIB_HPP_
#define RAYLIB_CPP_INCLUDE_RAYLIB_HPP_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef RAYLIB_H_FILE
#define RAYLIB_H_FILE "raylib.h"
#endif
#include RAYLIB_H_FILE // NOLINT
#if !defined(RAYLIB_VERSION_MAJOR) || !defined(RAYLIB_VERSION_MINOR) || RAYLIB_VERSION_MAJOR < 4 || RAYLIB_VERSION_MINOR < 5
#error "raylib-cpp requires at least raylib 4.5.0"
#endif
#if RAYLIB_VERSION_MINOR > 5
#error "raylib-cpp targets raylib 4.5. Use the `next` branch for the next version of raylib."
#endif
#ifdef __cplusplus
}
#endif
#endif // RAYLIB_CPP_INCLUDE_RAYLIB_HPP_