ReactOS 0.4.16-dev-1983-g1a17364
_invalid_parameter_nt.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS NT CRT library
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Implementation of _invalid_parameter
5 * COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8#include <stdlib.h>
9#include <ndk/rtlfuncs.h>
10
11void
14 _In_opt_z_ wchar_t const* expression,
15 _In_opt_z_ wchar_t const* function_name,
16 _In_opt_z_ wchar_t const* file_name,
17 _In_ unsigned int line_number,
19{
20 DbgPrint("%ws:%u: Invalid parameter ('%ws') passed to C runtime function %ws.\n",
23 expression,
25}
void __cdecl _invalid_parameter(_In_opt_z_ wchar_t const *expression, _In_opt_z_ wchar_t const *function_name, _In_opt_z_ wchar_t const *file_name, _In_ unsigned int line_number, _In_ uintptr_t reserved)
#define __cdecl
Definition: accygwin.h:79
int const char const *const int const line_number
Definition: debug_heap.cpp:499
r reserved
Definition: btrfs.c:3006
#define DbgPrint
Definition: hal.h:12
wchar_t const *const function_name
unsigned int uintptr_t
Definition: intrin.h:47
static LPCWSTR file_name
Definition: protocol.c:147
#define _In_opt_z_
Definition: no_sal2.h:218
#define _In_
Definition: no_sal2.h:158