aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-01 21:29:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-01 21:29:12 +0000
commit7d0fb3cccd2b43c459bdf08a69254e974c361169 (patch)
treefbc102329b21154d957c74848081b770576b3589
parentbox-drawing: dedicated functions to draw a full horizontal/vertical line (diff)
macros: add NOINLINE (__attribute__((noinline)))
-rw-r--r--macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 4d63404c..d4621bd5 100644
--- a/macros.h
+++ b/macros.h
@@ -26,6 +26,12 @@
#define UNUSED
#endif
+#if HAS_ATTRIBUTE(noinline)
+ #define NOINLINE __attribute__((noinline))
+#else
+ #define NOINLINE
+#endif
+
#if HAS_ATTRIBUTE(const)
#define CONST __attribute__((__const__))
#else