From c68a3ee136c4a9429fc209e421a70882cbfeab88 Mon Sep 17 00:00:00 2001 From: Harrison Lambeth Date: Tue, 28 Jan 2025 21:45:35 -0700 Subject: [PATCH] Define CLAY_IMPLEMENTATION in Jetbrains IDE [__JETBRAINS_IDE__](https://blog.jetbrains.com/clion/2017/02/clion-2017-1-eap-debugger-fixes-ide-macros-and-new-cmake/) is defined within Jetbrains editors like CLion and Rider. This is only defined inside the IDE, and does not affect builds, so we can use it to enable CLAY_IMPLEMENTATION to improve debugging & intellisense in this environment. I'm not sure if other IDEs have similar macros, but I figured we could start with this one --- clay.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clay.h b/clay.h index b82a513..6d3c564 100644 --- a/clay.h +++ b/clay.h @@ -14,6 +14,11 @@ #include #include +#ifdef __JETBRAINS_IDE__ +// Help jetbrains IDEs like CLion and Rider with intellisense & debugging +#define CLAY_IMPLEMENTATION +#endif + // ----------------------------------------- // HEADER DECLARATIONS --------------------- // -----------------------------------------