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