ReactOS  0.4.14-dev-55-g2da92ac
safecrt.h
Go to the documentation of this file.
1 
2 #include <errno.h>
3 
4 extern void * __pInvalidArgHandler;
5 
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
unsigned int uintptr_t
Definition: crtdefs.h:300
Definition: parser.c:48
void * __pInvalidArgHandler
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
Definition: errno.c:137
Definition: fci.c:126