[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: singleton::exists() addition for K_GLOBAL_STATIC
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-05-04 12:50:35
Message-ID: 200805041450.43048.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (text/plain)]

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

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic