diff options
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/compiler/compiler.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h index 7bba88282..e1f06b307 100644 --- a/tinyusb/common/compiler/compiler.h +++ b/tinyusb/common/compiler/compiler.h @@ -55,13 +55,17 @@ #ifdef _TEST_ #define ATTR_ALWAYS_INLINE #define STATIC_ + #define STATIC_VAR #define INLINE_ #else - #define STATIC_ static - #define INLINE_ inline + #define STATIC_ static + #define INLINE_ inline #if TUSB_CFG_DEBUG == 3 #define ATTR_ALWAYS_INLINE // no inline for debug = 3 + #define STATIC_VAR + #else + #define STATIC_VAR static #endif #endif |
