From e042e7b2879a221fe209d562885a8629722e8c39 Mon Sep 17 00:00:00 2001 From: ppisa Date: Mon, 25 May 2009 17:41:29 +0000 Subject: [PATCH] Added constructor, destructor and always_inline attributes to the uLUt definitions. --- ulut/ul_utdefs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ulut/ul_utdefs.h b/ulut/ul_utdefs.h index 6b5eb4e..5c6526d 100644 --- a/ulut/ul_utdefs.h +++ b/ulut/ul_utdefs.h @@ -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__ */ -- 2.39.2