Skip to content

Commit 2bdd096

Browse files
committed
Error out when on raylib >4.5
1 parent 3f2b428 commit 2bdd096

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)