diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:24:49 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:24:49 +1000 |
commit | 48a9d334b7a5b462b32c17a5fde07159deb4c280 (patch) | |
tree | 0f7032657b98730750a74ba6d09d01f2de119d4d /gfx.h | |
parent | 17c940423ba2159b20965ea6d004386bc392aa68 (diff) | |
download | uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.gz uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.bz2 uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.zip |
Replace all inline definitions with GFXINLINE
Diffstat (limited to 'gfx.h')
-rw-r--r-- | gfx.h | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -51,21 +51,23 @@ #endif #endif +/* gfxconf.h is the user's project configuration for the GFX system. */ +#include "gfxconf.h" + /** - * __inline was standardized with C99. previous to that each compiler handles it differently. + * @brief Should various inline ugfx functions be non-inline. + * @details Defaults to FALSE */ -#undef INLINE -#ifdef __KEIL__ - #define INLINE __inline -#elif __C51__ - #define INLINE __inline +#if GFX_NO_INLINE + #define GFXINLINE #else - #define INLINE inline + #if defined(__KEIL__) || defined(__C51__) + #define GFXINLINE __inline + #else + #define GFXINLINE inline + #endif #endif -/* gfxconf.h is the user's project configuration for the GFX system. */ -#include "gfxconf.h" - /** * @name GFX sub-systems that can be turned on * @{ |