Re: What gives us the macro GSEAL()?
- From: Colomban Wendling <ban-ubuntu club-internet fr>
- To: gtk-devel-list gnome org
- Subject: Re: What gives us the macro GSEAL()?
- Date: Sat, 11 Apr 2009 18:14:18 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Grzegorz Kuczyński a écrit :
> I want to know what gives macro GSEAL in struct GtkWindow.
AFAIK, it is used to hide members of GTK+ and GDK structures that will
become opaques in future releases (3.0 or so); then it makes easy to
see if a source must be updated not to use direct access of members.
In practice, compilation of a source code accessing directly struct
members with GSEAL_ENABLE defined will fail because member have
another name (_g_sealed__<name>).
> And a macro GSEAL (_g_sealed__ ## ident) work only on win32? I not
> understand the expression: _g_sealed__ ## ident ??
foo##bar is a C preprocessor directive that concatenated two tokens.
In practice, 'GSEAL(foo)' will expand to 'foo' if GSEAL_ENABLE is NOT
defined and to '_g_sealed__foo' if it is.
Regards,
Colomban
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkngwdoACgkQyqbACDEjVWgr0QCcD751/et+2ItQPWE5ENZJJzrF
0VIAoLDHLujHQzuG1C1H6Ek3EQUAf1Yg
=pCaB
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]