From 2bdd096269f0a6b53e278024cc6e4143f430c3c1 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 3 Jul 2023 12:34:04 -0400 Subject: [PATCH] Error out when on raylib >4.5 --- include/raylib.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/raylib.hpp b/include/raylib.hpp index 5280eff3..38b38ff1 100644 --- a/include/raylib.hpp +++ b/include/raylib.hpp @@ -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