RTAssertMsg2.cpp revision 3dbdf418c8421bce16df65aa4aa5da383c016154
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync/* $Id$ */
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync/** @file
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync * IPRT - RTAssertMsg2.
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync */
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync/*
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Copyright (C) 2008 Sun Microsystems, Inc.
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync *
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync * available from http://www.virtualbox.org. This file is free software;
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * The contents of this file may alternatively be used under the terms
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * of the Common Development and Distribution License Version 1.0
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution, in which case the provisions of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * CDDL are applicable instead of those of the GPL.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * You may elect to license modified versions of this file under the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * terms and conditions of either the GPL or the CDDL or both.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync *
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * additional information or have any questions.
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync */
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync/*******************************************************************************
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync* Header Files *
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync*******************************************************************************/
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync#include <iprt/assert.h>
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync#include <iprt/stdarg.h>
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsyncRTDECL(void) RTAssertMsg2(const char *pszFormat, ...)
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync{
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync va_list va;
fe4be2b043180249b7f7d5b22aced0bfe75764c4vboxsync va_start(va, pszFormat);
fe4be2b043180249b7f7d5b22aced0bfe75764c4vboxsync RTAssertMsg2V(pszFormat, va);
fe4be2b043180249b7f7d5b22aced0bfe75764c4vboxsync va_end(va);
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync}
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync