Re: Port from Win to OSX with Inline functions
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 6, 2006, at 8:37 PM, Chris Edgington wrote: Here's how I do it: ALWAYS_INLINE(int addOne(int x)); STATIC_INLINE int addOne(int x) { return x + 1; } -- Shaun Wexler MacFOH http://www.macfoh.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... #define INLINER inline __attribute__((always_inline)) #define STATIC_INLINE static inline #define ALWAYS_INLINE(func) STATIC_INLINE func __attribute__ ((__always_inline__)) "Things should be described as simply as possible, but no simpler." - Albert Einstein This email sent to site_archiver@lists.apple.com
participants (1)
-
Shaun Wexler