ReactOS 0.4.16-dev-2104-gb84fa49
assert.h File Reference
#include <corecrt.h>
Include dependency graph for assert.h:

Go to the source code of this file.

Macros

#define assert(_expr)   (void)((!!(_expr)) || (_assert(#_expr, __FILE__, __LINE__), 0))
 

Functions

_ACRTIMP DECLSPEC_NORETURN void __cdecl _assert (const char *, const char *, unsigned int)
 

Macro Definition Documentation

◆ assert

#define assert (   _expr)    (void)((!!(_expr)) || (_assert(#_expr, __FILE__, __LINE__), 0))

Definition at line 32 of file assert.h.

Function Documentation

◆ _assert()

_ACRTIMP DECLSPEC_NORETURN void __cdecl _assert ( const char str,
const char file,
unsigned int  line 
)

Definition at line 314 of file exit.c.

315{
316 wchar_t strW[1024], fileW[1024];
317
318 mbstowcs(strW, str, 1024);
319 mbstowcs(fileW, file, 1024);
320
322}
void DECLSPEC_NORETURN CDECL _wassert(const wchar_t *str, const wchar_t *file, unsigned int line)
Definition: exit.c:293
static const WCHAR fileW[]
Definition: url.c:111
WCHAR strW[12]
Definition: clipboard.c:2025
const WCHAR * str
mbstowcs
Definition: stdlib.h:925
Definition: fci.c:127
Definition: parser.c:49