From 8fe61b2a4c30b518d440ba0c67fee3feeb739fee Mon Sep 17 00:00:00 2001 From: Menno van der Graaf Date: Sun, 27 Oct 2024 01:08:36 +0200 Subject: [PATCH] Add an assert on custom frame control support --- examples/core/core_custom_frame_control.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/core/core_custom_frame_control.c b/examples/core/core_custom_frame_control.c index 9793fc35..348ef0c7 100644 --- a/examples/core/core_custom_frame_control.c +++ b/examples/core/core_custom_frame_control.c @@ -27,12 +27,20 @@ ********************************************************************************************/ #include "raylib.h" +#include "config.h" +#include "assert.h" //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { + #if !defined(SUPPORT_CUSTOM_FRAME_CONTROL) + // This examaple requires the SUPPORT_CUSTOM_FRAME_CONTROL feature. + // Please edit your raylib config.h and recompile raylib. + assert(false); + #endif + // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800;