Такого вы еще не видели

    Date: 12/14/07 (Code WTF)    Keywords: no keywords

    C++, Win32:

    HRESULT hr = SomeFunction();
    if FAILED(hr)
    {
       // do something
    }
     

    Именно так, без скобок "if FAILED(hr)".  Каково?

    Source: http://community.livejournal.com/code_wtf/118318.html

« CWnd::CenterWindow() || Догадайтесь... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home