ReactOS 0.4.15-dev-7942-gd23573b
_set_abort_behavior.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS C runtime library
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: lib/sdk/crt/stdlib/_set_abort_behavior.c
5 * PURPOSE: _set_abort_behavior implementation
6 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
7 */
8
9extern unsigned int __abort_behavior;
10
18unsigned int
19_cdecl
21 unsigned int flags,
22 unsigned int mask)
23{
24 unsigned int old_flags;
25
26 /* Save the old flags */
27 old_flags = __abort_behavior;
28
29 /* Reset all flags that are not in the mask */
30 flags &= mask;
31
32 /* Update the flags in the mask to the new flags value */
35
36 /* Return the old flags */
37 return old_flags;
38}
39
unsigned int __abort_behavior
Definition: abort.c:12
unsigned int _cdecl _set_abort_behavior(unsigned int flags, unsigned int mask)
Specifies the behavior of the abort() function.
GLenum GLint GLuint mask
Definition: glext.h:6028
GLbitfield flags
Definition: glext.h:7161