AP_Common: NOINLINE is now defined in ChibiOS

This commit is contained in:
Andy Piper 2022-11-10 16:50:28 +00:00 committed by Andrew Tridgell
parent 51f856e5c6
commit 07532eaf2f
1 changed files with 2 additions and 0 deletions

View File

@ -44,7 +44,9 @@
#define OPTIMIZE(level) __attribute__((optimize(level)))
// sometimes we need to prevent inlining to prevent large stack usage
#ifndef NOINLINE
#define NOINLINE __attribute__((noinline))
#endif
// used to ignore results for functions marked as warn unused
#define IGNORE_RETURN(x) do {if (x) {}} while(0)