52a3801208
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
33 lines
510 B
C
Executable File
33 lines
510 B
C
Executable File
/*
|
|
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
|
|
** Copyright 2002, Manuel J. Petit. All rights reserved.
|
|
** Distributed under the terms of the NewOS License.
|
|
*/
|
|
|
|
#ifndef __newos__nulibc_assert__hh__
|
|
#define __newos__nulibc_assert__hh__
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
|
|
void _assert(char const *, int, char const *);
|
|
|
|
|
|
#ifdef NDEBUG
|
|
# define assert(x)
|
|
#else
|
|
# define assert(x) ( (x) ? (void)0 : _assert(__FILE__, __LINE__, #x) )
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* "C" */
|
|
#endif
|
|
|
|
|
|
#endif
|