1.1 --- a/epoc32/include/libc/assert.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/libc/assert.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,47 @@
1.4 -assert.h
1.5 +/*
1.6 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description:
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +
1.26 +
1.27 +#ifdef __cplusplus
1.28 +extern "C" {
1.29 +#endif
1.30 +
1.31 +#include "_ansi.h"
1.32 +
1.33 +#undef assert
1.34 +/**
1.35 +@publishedAll
1.36 +@released
1.37 +*/
1.38 +#ifdef NDEBUG /* required by ANSI standard */
1.39 +#define assert(p) ((void)0)
1.40 +#else
1.41 +#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
1.42 +#endif /* NDEBUG */
1.43 +/**
1.44 +@publishedAll
1.45 +@released
1.46 +*/
1.47 +IMPORT_C void __assert(const char *, int, const char *);
1.48 +
1.49 +#ifdef __cplusplus
1.50 +}
1.51 +#endif