Re: [PATCH 00/13] Improved introspection support
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: Re: [PATCH 00/13] Improved introspection support
- Date: Thu, 29 Jul 2010 12:20:40 +0200
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]