VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/mesa/include/assert.h@ 95890

最後變更 在這個檔案從95890是 95262,由 vboxsync 提交於 3 年 前

Additions/3D: update to mesa-21.3.8. bugref:9845

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
1/* $Id: assert.h 95262 2022-06-13 17:26:17Z vboxsync $ */
2/** @file
3 * Replaces C runtime assert with a simplified version which just hits breakpoint.
4 *
5 * Mesa code uses assert.h a lot, which is inconvenient because the C runtime
6 * implementation wants to open a message box and it does not work in the
7 * graphics driver.
8 */
9
10/*
11 * Copyright (C) 2017-2022 Oracle Corporation
12 *
13 * This file is part of VirtualBox Open Source Edition (OSE), as
14 * available from http://www.alldomusa.eu.org. This file is free software;
15 * you can redistribute it and/or modify it under the terms of the GNU
16 * General Public License (GPL) as published by the Free Software
17 * Foundation, in version 2 as it comes in the "COPYING" file of the
18 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
19 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20 */
21
22#ifndef GA_INCLUDED_3D_MESA_assert_h
23#define GA_INCLUDED_3D_MESA_assert_h
24#ifndef RT_WITHOUT_PRAGMA_ONCE
25# pragma once
26#endif
27
28#include <iprt/asm.h>
29
30#undef assert
31#ifdef DEBUG
32#define assert(_e) (void)( (!!(_e)) || (ASMBreakpoint(), 0) )
33#else
34#define assert(_e) (void)(0)
35#endif
36
37#endif /* !GA_INCLUDED_3D_MESA_assert_h */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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