ReactOS 0.4.15-dev-7942-gd23573b
_set_abort_behavior.c File Reference

Go to the source code of this file.

Functions

unsigned int _cdecl _set_abort_behavior (unsigned int flags, unsigned int mask)
 Specifies the behavior of the abort() function.
 

Variables

unsigned int __abort_behavior
 

Function Documentation

◆ _set_abort_behavior()

unsigned int _cdecl _set_abort_behavior ( unsigned int  flags,
unsigned int  mask 
)

Specifies the behavior of the abort() function.

Parameters
flags- Value of the new flags.
mask- Mask that specifies which flags to update.
Returns
The old flags value.

Definition at line 20 of file _set_abort_behavior.c.

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}
unsigned int __abort_behavior
Definition: abort.c:12
GLenum GLint GLuint mask
Definition: glext.h:6028
GLbitfield flags
Definition: glext.h:7161

Variable Documentation

◆ __abort_behavior

unsigned int __abort_behavior
extern

Definition at line 12 of file abort.c.

Referenced by _set_abort_behavior(), and abort().