VirtualBox

source: vbox/trunk/src/libs/kStuff/iprt/kHlpAssert-iprt.cpp@ 25595

Last change on this file since 25595 was 25529, checked in by vboxsync, 15 years ago

kHlpAssert-iprt.cpp: forgot one thing.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: kHlpAssert-iprt.cpp 25529 2009-12-20 23:25:54Z vboxsync $ */
2/** @file
3 * kHlpEnv - Assertions, IPRT based implementation.
4 */
5
6/*
7 * Copyright (C) 2009 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22/*******************************************************************************
23* Header Files *
24*******************************************************************************/
25#include <k/kHlpAssert.h>
26#include <iprt/stdarg.h>
27#include <iprt/assert.h>
28#include <iprt/string.h>
29#include <iprt/err.h>
30
31
32KHLP_DECL(void) kHlpAssertMsg1(const char *pszExpr, const char *pszFile, unsigned iLine, const char *pszFunction)
33{
34 RTAssertMsg1Weak(pszExpr, iLine, pszFile, pszFunction);
35}
36
37
38KHLP_DECL(void) kHlpAssertMsg2(const char *pszFormat, ...)
39{
40 va_list va;
41 va_start(va, pszFormat);
42 RTAssertMsg2WeakV(pszFormat, va);
43 va_end(va);
44}
45
Note: See TracBrowser for help on using the repository browser.

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