From a1a32121319fdc629a52fab2f7c6633bc494961d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 May 2015 09:35:26 +1000 Subject: [PATCH] AP_Common: moved NOINLINE define to AP_Common.h --- libraries/AP_Common/AP_Common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 80fbc660bf..6bbd7426a4 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -44,6 +44,9 @@ // this can be used to optimize individual functions #define OPTIMIZE(level) __attribute__((optimize(level))) +// sometimes we need to prevent inlining to prevent large stack usage +#define NOINLINE __attribute__((noinline)) + // Make some dire warnings into errors // // Some warnings indicate questionable code; rather than let