mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									fd76ce62f3
								
							
						
					
					
						commit
						997128cdc0
					
				
							
								
								
									
										5
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -21,6 +21,11 @@
 | 
				
			||||||
#include <arm_neon.h>
 | 
					#include <arm_neon.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef __JETBRAINS_IDE__
 | 
				
			||||||
 | 
					// Help jetbrains IDEs like CLion and Rider with intellisense & debugging
 | 
				
			||||||
 | 
					#define CLAY_IMPLEMENTATION
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// -----------------------------------------
 | 
					// -----------------------------------------
 | 
				
			||||||
// HEADER DECLARATIONS ---------------------
 | 
					// HEADER DECLARATIONS ---------------------
 | 
				
			||||||
// -----------------------------------------
 | 
					// -----------------------------------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue