Annotation of os2sdk/include/assert.h, revision 1.1

1.1     ! root        1: /***
        !             2: *assert.h - define the assert macro
        !             3: *
        !             4: *   Copyright (c) 1985-1987, Microsoft Corporation.  All rights reserved.
        !             5: *
        !             6: *Purpose:
        !             7: *   Defines the assert(exp) macro.
        !             8: *   [ANSI/System V]
        !             9: *
        !            10: *******************************************************************************/
        !            11: 
        !            12: #ifndef _ASSERT_DEFINED
        !            13: 
        !            14: #ifndef NDEBUG
        !            15: 
        !            16: static char _assertstring[] = "Assertion failed: %s, file %s, line %d\n";
        !            17: 
        !            18: #define assert(exp) { \
        !            19:     if (!(exp)) { \
        !            20:         fprintf(stderr, _assertstring, #exp, __FILE__, __LINE__); \
        !            21:         abort(); \
        !            22:         } \
        !            23:     }
        !            24: 
        !            25: #else
        !            26: 
        !            27: #define assert(exp)
        !            28: 
        !            29: #endif /* NDEBUG */
        !            30: 
        !            31: #define _ASSERT_DEFINED
        !            32: 
        !            33: #endif /* _ASSERT_DEFINED */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.