[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation warnings in liboctave/CMatrix.cc
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: compilation warnings in liboctave/CMatrix.cc |
Date: |
Thu, 13 Jan 2011 08:20:45 -0600 |
On 13 January 2011 04:40, CdeMills <address@hidden> wrote:
> Is it really worth a function ? Couldn't it be reduced to an inline func or
> some #define ?
Please try to keep #defines at an absolute mininum. We've already run
into problems with rampant #defines causing obscure compiler errors in
X headers. By itself, inlining a function should not be a reason to
use #define; gcc is already very good at deciding which functions
should be inlined, even if you don't use the inline keyword.
- Jordi G. H.
Re: compilation warnings in liboctave/CMatrix.cc,
Jordi Gutiérrez Hermoso <=