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
This commit is contained in:
Harrison Lambeth 2025-01-28 21:45:35 -07:00 committed by GitHub
parent 1bcf256e4d
commit c68a3ee136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
clay.h
View File

@ -14,6 +14,11 @@
#include <stdbool.h>
#include <stddef.h>
#ifdef __JETBRAINS_IDE__
// Help jetbrains IDEs like CLion and Rider with intellisense & debugging
#define CLAY_IMPLEMENTATION
#endif
// -----------------------------------------
// HEADER DECLARATIONS ---------------------
// -----------------------------------------