[Monetdb-developers] Functions & macros

Fabian Groffen Fabian.Groffen at cwi.nl
Fri Nov 10 13:31:14 CET 2006


On 10-11-2006 12:58:41 +0100, Wouter Scherphof wrote:
> Let me just check if I got this correctly:
> Is it a general rule that each call to a function generates overhead, that
> can be eliminated by replacing the function with a macro and "calling" the
> macro instead?

You mean in C?  If so, yes, but putting everything in a macro isn't the
best thing either.  Also macros aren't exactly the same as functions.
Alternatively you can choose to inline functions.




More information about the developers-list mailing list