aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-10-23 18:28:42 +1000
committerinmarket <andrewh@inmarket.com.au>2015-10-23 18:28:42 +1000
commit00aeab86eb311f57d026931499ae5935c00857b1 (patch)
tree44fe653eabd0362e2f97fbafdbdf96ffb4de08d2 /gfx.h
parent29251f33bd106cfdc317fa00c10ecfb3a64fcc2d (diff)
parent48a9d334b7a5b462b32c17a5fde07159deb4c280 (diff)
downloaduGFX-00aeab86eb311f57d026931499ae5935c00857b1.tar.gz
uGFX-00aeab86eb311f57d026931499ae5935c00857b1.tar.bz2
uGFX-00aeab86eb311f57d026931499ae5935c00857b1.zip
Merge branch 'master' into Keil
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/gfx.h b/gfx.h
index eea3bce2..74b18ac2 100644
--- a/gfx.h
+++ b/gfx.h
@@ -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
* @{