VirtualBox

Changeset 6976 in vbox for trunk/include/VBox/com/defs.h


Ignore:
Timestamp:
Feb 15, 2008 5:33:30 PM (17 years ago)
Author:
vboxsync
Message:

Main/Glue: Added macro SUCCEEED_WARNING(rc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/defs.h

    r6963 r6976  
    5555#define NS_DECL_IMACHINECOLLECTION
    5656#define NS_DECL_IMACHINE
     57
     58/** Returns @c true if @a rc represents a warning result code */
     59#define SUCCEEDED_WARNING(rc)   (SUCCEEDED (rc) && (rc) != S_OK)
    5760
    5861/* input pointer argument to method */
     
    191194#define END_COM_MAP(a)
    192195
    193 #define HRESULT nsresult
    194 #define SUCCEEDED NS_SUCCEEDED
    195 #define FAILED NS_FAILED
    196 #define NS_NULL nsnull
     196#define HRESULT     nsresult
     197#define SUCCEEDED   NS_SUCCEEDED
     198#define FAILED      NS_FAILED
     199
     200#define SUCCEEDED_WARNING(rc)   (NS_SUCCEEDED (rc) && (rc) != NS_OK)
    197201
    198202#define IUnknown nsISupports
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette