ReactOS
0.4.16-dev-61-ge128cbc
safecrt.h
Go to the documentation of this file.
1
2
#include <errno.h>
3
4
extern
void
*
__pInvalidArgHandler
;
5
6
void
_invalid_parameter
(
7
const
wchar_t
* expression,
8
const
wchar_t
* function,
9
const
wchar_t
*
file
,
10
unsigned
int
line
,
11
uintptr_t
pReserved);
12
13
#ifndef _LIBCNT_
14
#define MSVCRT_INVALID_PMT(x,err) (*_errno() = (err), _invalid_parameter(NULL, NULL, NULL, 0, 0))
15
#define MSVCRT_CHECK_PMT_ERR(x,err) ((x) || (MSVCRT_INVALID_PMT( 0, (err) ), 0))
16
#define MSVCRT_CHECK_PMT(x) MSVCRT_CHECK_PMT_ERR((x), EINVAL)
17
#else
18
/* disable secure crt parameter checks */
19
#define MSVCRT_INVALID_PMT(x,err)
20
#define MSVCRT_CHECK_PMT_ERR(x,err)
21
#define MSVCRT_CHECK_PMT(x) (x)
22
#endif
uintptr_t
unsigned int uintptr_t
Definition:
crtdefs.h:321
_invalid_parameter
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
Definition:
_invalid_parameter.c:22
__pInvalidArgHandler
void * __pInvalidArgHandler
file
Definition:
fci.c:127
line
Definition:
parser.c:49
sdk
lib
crt
include
internal
safecrt.h
Generated on Fri Sep 20 2024 06:13:03 for ReactOS by
1.9.6