mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Move STRONG_INLINE define into Global.h
This commit is contained in:
		
							
								
								
									
										12
									
								
								Global.h
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Global.h
									
									
									
									
									
								
							| @@ -95,6 +95,18 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size."); | ||||
| #  define NOMINMAX					// Exclude min/max macros from <Windows.h>. Use std::[min/max] from <algorithm> instead. | ||||
| #endif | ||||
|  | ||||
| /* ---------------------------------------------------------------------------- */ | ||||
| /* A macro to force inlining some of our functions */ | ||||
| /* ---------------------------------------------------------------------------- */ | ||||
| // Compiler (at least MSVC) is not so smart here-> without that displaying is MUCH slower | ||||
| #ifdef _MSC_VER | ||||
| #  define STRONG_INLINE __forceinline | ||||
| #elif __GNUC__ | ||||
| #  define STRONG_INLINE inline __attribute__((always_inline)) | ||||
| #else | ||||
| #  define STRONG_INLINE inline | ||||
| #endif | ||||
|  | ||||
| #define _USE_MATH_DEFINES | ||||
|  | ||||
| #include <cstdio> | ||||
|   | ||||
| @@ -18,15 +18,6 @@ | ||||
| #include "../../lib/GameConstants.h" | ||||
|  | ||||
|  | ||||
| //A macro to force inlining some of our functions. Compiler (at least MSVC) is not so smart here-> without that displaying is MUCH slower | ||||
| #ifdef _MSC_VER | ||||
| 	#define STRONG_INLINE __forceinline | ||||
| #elif __GNUC__ | ||||
| 	#define STRONG_INLINE inline __attribute__((always_inline)) | ||||
| #else | ||||
| 	#define STRONG_INLINE inline | ||||
| #endif | ||||
|  | ||||
| extern SDL_Window * mainWindow; | ||||
| extern SDL_Renderer * mainRenderer; | ||||
| extern SDL_Texture * screenTexture; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user