VirtualBox

Changeset 33340 in vbox


Ignore:
Timestamp:
Oct 22, 2010 11:01:53 AM (14 years ago)
Author:
vboxsync
Message:

cdefs: added RT_BOOL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r33169 r33340  
    11921192 */
    11931193#define RT_ABS(Value)                           ( (Value) >= 0 ? (Value) : -(Value) )
     1194
     1195/** @def RT_BOOL
     1196 * Turn non-zero/zero into true/false
     1197 * @returns The resulting boolean value.
     1198 * @param   Value       The value.
     1199 */
     1200#define RT_BOOL(Value)                          ( !!(Value) )
    11941201
    11951202/** @def RT_LODWORD
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