[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 1/6] unit-tests: add some helper macros for unit-test framework implementation
From:       Bartosz Golaszewski <bartekgola () gmail ! com>
Date:       2014-04-15 21:06:52
Message-ID: 1397603199-12864-2-git-send-email-bartekgola () gmail ! com
[Download RAW message or body]

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
---
 include/platform.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/platform.h b/include/platform.h
index 92f7755..5fe443c 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -56,6 +56,9 @@
 #define RETURNS_MALLOC __attribute__ ((malloc))
 #define PACKED __attribute__ ((__packed__))
 #define ALIGNED(m) __attribute__ ((__aligned__(m)))
+#define PRINTF_FUNC(fmt, params) __attribute__ ((format(printf, fmt, params)))
+#define INIT_FIRST __attribute__ ((constructor(1000)))
+#define INIT_LAST __attribute__ ((constructor(2000)))
 
 /* __NO_INLINE__: some gcc's do not honor inlining! :( */
 #if __GNUC_PREREQ(3,0) && !defined(__NO_INLINE__)
-- 
1.8.4.5

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic