]> rtime.felk.cvut.cz Git - ulut.git/commitdiff
Added constructor, destructor and always_inline attributes to the uLUt definitions.
authorppisa <ppisa>
Mon, 25 May 2009 17:41:29 +0000 (17:41 +0000)
committerppisa <ppisa>
Mon, 25 May 2009 17:41:29 +0000 (17:41 +0000)
ulut/ul_utdefs.h

index 6b5eb4ee773c0f556fbbee6f48903a604f734aef..5c6526d92237f10bbcc92128588b4f739e7f08cc 100644 (file)
@@ -74,6 +74,12 @@ extern "C" {
   __attribute__((const))
 #define        UL_ATTR_UNUSED                          \
   __attribute__((unused))
+#define UL_ATTR_CONSTRUCTOR                    \
+  __attribute__((constructor))
+#define        UL_ATTR_DESCRUCTOR                      \
+  __attribute__((destructor))
+#define        UL_ATTR_ALWAYS_INLINE                   \
+  __attribute__((always_inline))
 #endif  /*UL_ATTR_UNUSED*/
 #else  /* !__GNUC__ */
 #ifndef UL_ATTR_UNUSED
@@ -83,6 +89,9 @@ extern "C" {
 #define UL_ATTR_NORETURN
 #define UL_ATTR_CONST
 #define UL_ATTR_UNUSED
+#define        UL_ATTR_CONSTRUCTOR
+#define        UL_ATTR_DESCRUCTOR
+#define        UL_ATTR_ALWAYS_INLINE
 #endif  /*UL_ATTR_UNUSED*/
 #endif /* !__GNUC__ */