diff options
Diffstat (limited to 'tinyusb/common/compiler/compiler.h')
| -rw-r--r-- | tinyusb/common/compiler/compiler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h index b3439f1b6..8eb01ef3e 100644 --- a/tinyusb/common/compiler/compiler.h +++ b/tinyusb/common/compiler/compiler.h @@ -51,6 +51,16 @@ #ifndef _TUSB_COMPILER_H_ #define _TUSB_COMPILER_H_ +#ifdef _TEST_ + #define ATTR_ALWAYS_INLINE + #define STATIC_ + #define INLINE_ +#else + #define STATIC_ static + #define INLINE_ inline +#endif + + #if defined(__GNUC__) #include "compiler_gcc.h" #elif defined __ICCARM__ // IAR compiler |
