mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
22
sdk/lib/crt/include/internal/safecrt.h
Normal file
22
sdk/lib/crt/include/internal/safecrt.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
extern void * __pInvalidArgHandler;
|
||||
|
||||
void _invalid_parameter(
|
||||
const wchar_t * expression,
|
||||
const wchar_t * function,
|
||||
const wchar_t * file,
|
||||
unsigned int line,
|
||||
uintptr_t pReserved);
|
||||
|
||||
#ifndef _LIBCNT_
|
||||
#define MSVCRT_INVALID_PMT(x,err) (*_errno() = (err), _invalid_parameter(NULL, NULL, NULL, 0, 0))
|
||||
#define MSVCRT_CHECK_PMT_ERR(x,err) ((x) || (MSVCRT_INVALID_PMT( 0, (err) ), 0))
|
||||
#define MSVCRT_CHECK_PMT(x) MSVCRT_CHECK_PMT_ERR((x), EINVAL)
|
||||
#else
|
||||
/* disable secure crt parameter checks */
|
||||
#define MSVCRT_INVALID_PMT(x,err)
|
||||
#define MSVCRT_CHECK_PMT_ERR(x,err)
|
||||
#define MSVCRT_CHECK_PMT(x) (x)
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue