singleton::exists() addition for K_GLOBAL_STATIC
Thiago Macieira
thiago at kde.org
Sun May 4 13:50:35 BST 2008
David Faure wrote:
>+ bool exists()
> \ + {
> \ + return _k_static_##NAME != 0;
> \ + }
Missing the "inline".
I'd go as far now as marking all of those extra methods
__attribute__((always_inline)) to make sure gcc never generates them if
they're not used.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080504/a8138ae0/attachment.sig>
More information about the kde-core-devel
mailing list