epoc32/include/libc/assert.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * 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
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 
    22 
    23 #ifdef __cplusplus
    24 extern "C" {
    25 #endif
    26 
    27 #include "_ansi.h"
    28 
    29 #undef assert
    30 /**
    31 @publishedAll
    32 @released
    33 */
    34 #ifdef NDEBUG           /* required by ANSI standard */
    35 #define assert(p)  	((void)0)
    36 #else
    37 #define assert(e)       ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
    38 #endif /* NDEBUG */
    39 /**
    40 @publishedAll
    41 @released
    42 */
    43 IMPORT_C void __assert(const char *, int, const char *);
    44 
    45 #ifdef __cplusplus
    46 }
    47 #endif