#ifndef MSASSERT_H #define MSASSERT_H 1 /* * MSASSERT.H Diagnostic utility * * The DECUS C library did not come with an easy macro for making diagnostic * messages. This file provides an equivalent to the ANSI * * Copyright (c) 1991 Shal Farley * Cheshire Engineering Corporation * 650 Sierra Madre Villa Avenue, Suite 201 * Pasadena, California 91107 * (818) 351-5493 * (818) 351-8645 FAX * shal@alumni.caltech.edu * * This software may be used and distributed for any purpose without license or * royalty payments so long as the above copyright notice is preserved. If you * have any comments, bug fixes, improvements, or new programs based upon this * software I'd like to hear from you. */ #ifndef NDEBUG # define assert(exp) if (!(exp)) { fprintf(stderr, \ "Assertion failed: %s, file %s, line %d\n", #exp, __FILE__, __LINE__);\ abort(); } #else # define assert(exp) #endif /* NDEBUG */ #endif /* MSASSERT_H */