Re: [PATCH 00/13] Improved introspection support



On Wed, 2010-07-28 at 23:06 +0200, Simón Pena wrote:
> * Replacing alias defined with macros, as they can't be introspected,
>   using "inline" functions instead.
> 
>   This has been done in two steps: first, macros were replaced with
>   functions, which works fine. Then, those functions were marked as
>   "inline" following [1], declaring the functions with "extern", and
>   defining them with "inline". 


It is common use to declare and define inline functions in the same
header file.

You can find a lot of examples using google's code search.

The good point about declaring them in .h instead of .c is that it
resembles more to #defines, as you see the declaration and what it does
in the same place.

But I would like to hear other opinions.


	J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]