ReactOS 0.4.15-dev-8131-g4988de4
safecrt.h
Go to the documentation of this file.
1
2#include <errno.h>
3
4extern 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:321
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
void * __pInvalidArgHandler
Definition: fci.c:127
Definition: parser.c:49