Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
UtilCode/CoreAssertion.h
#define CoreDebug 1 |
#ifdef CoreDebug |
void CoreAssert(short, char *, char *, short); |
#define Assert(x) if(!(x)) CoreAssert((short)(x),#x, __FILE__, __LINE__) |
#define ASSERT(x) if(!(x)) CoreAssert((short)(x),#x, __FILE__, __LINE__) |
#define AssertErr(x) if(x) CoreAssert((short)(x),#x, __FILE__, __LINE__) |
#else |
#define Assert // |
#define ASSERT // |
#define AssertErr // |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14