VirtualBox

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

Last change on this file since 80623 was 76563, checked in by vboxsync, 6 years ago

Additions: Use GA_INCLUDED_ and variations_ as header guard prefixes with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/* $Id: assert.h 76563 2019-01-01 03:53:56Z 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-2019 Oracle Corporation
12 *
13 * This file is part of VirtualBox Open Source Edition (OSE), as
14 * available from http://www.virtualbox.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#define assert(_e) (void)( (!!(_e)) || (ASMBreakpoint(), 0) )
32
33#endif /* !GA_INCLUDED_3D_MESA_assert_h */
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