/* Copyright 07/20/98 Sun Microsystems, Inc. All Rights Reserved */ // There are no functions or types defined by the standard, so none of // the names go in namespace std. // C++ Standard functions and types extern "C" void __assert(const char *, const char *, int); /* * Note that the ANSI C Standard requires all headers to be idempotent except * which is explicitly required not to be idempotent (section 4.1.2). * Therefore, it is by intent that the header guards (#ifndef _ASSERT_H) do * not span this entire file. */ #undef assert #ifdef NDEBUG #define assert(EX) ((void)0) #else #define assert(EX) (void)((EX) || (__assert(#EX, __FILE__, __LINE__), 0)) #endif /* NDEBUG */