[nanomsg] Re: inline functions vs. macros

  • From: Chip Salzenberg <rev.chip@xxxxxxxxx>
  • To: Martin Sustrik <sustrik@xxxxxxxxxx>
  • Date: Tue, 20 Aug 2013 11:48:17 -0700

Well, I was going to get to asserts soon enough... but no.  I meant
e.g. NN_CMSG_FIRSTHDR, NN_CMSG_DATA, etc.  The sort of thing that would
have been a normal function except for efficiency concerns.


On Tue, Aug 20, 2013 at 11:25 AM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:

> Hi Chip,
>
>
>  Is it a decision or just accident that nanomsg uses macros rather than
>> inline functions for its function-like macros?  Would a conversion to
>> inline functions be welcome, unwelcome, or wait-and-see?
>>
>
> What macros do you have in mind exactly? If you are speaking of different
> assert macros, they have to be macros to make __FILE__ and __LINE__ work
> appropriately.
>
> Martin
>

Other related posts: