Use attribute((always_inline)) to force inlining. This fixes the much
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 23:43:39 +0000 (23:43 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 23:43:39 +0000 (23:43 +0000)
hated need of redundant prototypes for inline functions.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@69 38d2e660-2303-0410-9eaa-f027e97ec537

compiler.h

index 9496481d0bdea5bd81d9a3716086f8c2e738c141..dd7a5b88dbf44df8ade9998dc086c1fa2516c9ff 100755 (executable)
 
 /*
  * $Log$
+ * Revision 1.8  2004/07/20 23:43:39  bernie
+ * Use attribute((always_inline)) to force inlining.  This fixes the much
+ * hated need of redundant prototypes for inline functions.
+ *
  * Revision 1.7  2004/07/20 23:26:48  bernie
  * Fix two errors introduced by previous commit.
  *
        #define FORMAT(type,fmt,first)  __attribute__((__format__(type, fmt, first)))
        #define NORETURN                __attribute__((__noreturn__))
        #define UNUSED(type,arg)        __attribute__((__unused__)) type arg
-       #define INLINE extern inline
+       #define INLINE                  static inline __attribute__((__always_inline__))
        #if GNUC_PREREQ(3,1)
-               #define DEPRECATED              __attribute__((__deprecated__))
+               #define DEPRECATED      __attribute__((__deprecated__))
        #endif
 
        #if defined(__i386__)