summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-21 13:17:43 +0700
committerhathach <[email protected]>2013-09-21 13:17:43 +0700
commitd15ba08fdc5c75aa061dc7dde10eff54f6dc607f (patch)
tree037d09bc2fd3d65c311cb8938d8fedb795debd0c /tinyusb/common
parent2db5fcdf0a34142a3712174baba1ba7bf63af3f4 (diff)
house keeping
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/compiler/compiler.h8
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