Skip to content

Commit

Permalink
Merge pull request #243 from RobLoach/error-on-raylib-4.6
Browse files Browse the repository at this point in the history
Error out when on raylib >4.5
  • Loading branch information
RobLoach authored Jul 7, 2023
2 parents 3f2b428 + 2bdd096 commit 3b129b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/raylib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ extern "C" {
#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
Expand Down

0 comments on commit 3b129b4

Please sign in to comment.