ReactOS
0.4.16-dev-106-g10b08aa
_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
9
extern
unsigned
int
__abort_behavior
;
10
18
unsigned
int
19
_cdecl
20
_set_abort_behavior
(
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 */
33
__abort_behavior
&=
~mask
;
34
__abort_behavior
|=
flags
;
35
36
/* Return the old flags */
37
return
old_flags;
38
}
39
__abort_behavior
unsigned int __abort_behavior
Definition:
abort.c:12
_set_abort_behavior
unsigned int _cdecl _set_abort_behavior(unsigned int flags, unsigned int mask)
Specifies the behavior of the abort() function.
Definition:
_set_abort_behavior.c:20
mask
GLenum GLint GLuint mask
Definition:
glext.h:6028
flags
GLbitfield flags
Definition:
glext.h:7161
sdk
lib
crt
stdlib
_set_abort_behavior.c
Generated on Tue Oct 8 2024 06:16:46 for ReactOS by
1.9.6