VirtualBox

source: vbox/trunk/src/VBox/Runtime/include/internal/assert.h@ 26344

最後變更 在這個檔案從26344是 25536,由 vboxsync 提交於 15 年 前

iprt/assert.h: Added RTAssertMsg2Add[Weak][V] for dumping the lock deadlock chain and stacks. Added the missing internal/assert.h file to the linux and freebsd kernel source trees.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1/* $Id: assert.h 25536 2009-12-21 11:06:08Z vboxsync $ */
2/** @file
3 * IPRT - Internal RTAssert header
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.alldomusa.eu.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 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 *
26 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27 * Clara, CA 95054 USA or visit http://www.sun.com if you need
28 * additional information or have any questions.
29 */
30
31#ifndef ___internal_assert_h
32#define ___internal_assert_h
33
34#include <iprt/types.h>
35
36RT_C_DECLS_BEGIN
37
38#ifdef IN_RING0
39
40/**
41 * Print the 1st part of an assert message to whatever native facility is best
42 * fitting.
43 *
44 * @param pszExpr Expression. Can be NULL.
45 * @param uLine Location line number.
46 * @param pszFile Location file name.
47 * @param pszFunction Location function name.
48 */
49void rtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction);
50
51/**
52 * Print the 2nd (optional) part of an assert message to whatever native
53 * facility is best fitting.
54 *
55 * @param fInitial Whether it's the initial (true) or an additional (false)
56 * message.
57 * @param pszFormat Printf like format string.
58 * @param va Arguments to that string.
59 */
60void rtR0AssertNativeMsg2V(bool fInitial, const char *pszFormat, va_list va);
61
62#endif
63
64RT_C_DECLS_END
65
66#endif
67
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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