VirtualBox

Changeset 55943 in vbox


Ignore:
Timestamp:
May 19, 2015 11:00:46 PM (10 years ago)
Author:
vboxsync
Message:

Wrapper.h: Replaced RT_UNLIKELY with RT_LIKELY to improve our karma wrt MSC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/Wrapper.h

    r50416 r55943  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox COM: API wrapper helpers
     3 * VirtualBox COM - API wrapper helpers.
    44 */
    55
    66/*
    7  * Copyright (C) 2012-2014 Oracle Corporation
     7 * Copyright (C) 2012-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333#define CheckComArgOutPointerValidThrow(arg) \
    3434    do { \
    35         if (RT_UNLIKELY(!VALID_PTR(arg))) \
     35        if (RT_LIKELY(RT_VALID_PTR(arg))) \
     36        { /* likely */ }\
     37        else \
    3638            throw setError(E_POINTER, \
    3739                tr("Output argument %s points to invalid memory location (%p)"), \
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