Skip to content

Commit 3b129b4

Browse files
authored
Merge pull request #243 from RobLoach/error-on-raylib-4.6
Error out when on raylib >4.5
2 parents 3f2b428 + 2bdd096 commit 3b129b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/raylib.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ extern "C" {
1818
#error "raylib-cpp requires at least raylib 4.5.0"
1919
#endif
2020

21+
#if RAYLIB_VERSION_MINOR > 5
22+
#error "raylib-cpp targets raylib 4.5. Use the `next` branch for the next version of raylib."
23+
#endif
24+
2125
#ifdef __cplusplus
2226
}
2327
#endif

0 commit comments

Comments
 (0)