Browse Source

AP_Common: added OPTIMIZE() macro

this can be used to change the compiler optimization level of
individual functions

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
f1e120113c
  1. 3
      libraries/AP_Common/AP_Common.h

3
libraries/AP_Common/AP_Common.h

@ -38,6 +38,9 @@ @@ -38,6 +38,9 @@
#define PACKED __attribute__((__packed__))
#endif
// this can be used to optimize individual functions
#define OPTIMIZE(level) __attribute__((optimize(level)))
// Make some dire warnings into errors
//
// Some warnings indicate questionable code; rather than let

Loading…
Cancel
Save