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.
Headers/WRay_Error.h
/* |
* WRay_Error.h |
* |
* QuickDraw 3D 1.6 Sample |
* Robert Dierkes |
* |
* 07/28/98 RDD Created. |
*/ |
#ifndef _HWRay_Error |
#define _HWRay_Error |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include <Types.h> |
void Error_Alert( short iconType, |
char *pMessage); |
Boolean Error_ShowMessage( |
short resStringIndex); |
#if defined(USE_DEBUGGING) |
#define DEBUGGING 1 |
#else |
#define DEBUGGING 0 |
#endif |
#if defined(USE_DEBUGGING) || defined(ERROR_DEBUG_STR) |
#undef ERROR_DEBUG_STR |
#define ERROR_DEBUG_STR(s) debugstr(s) |
#else |
#define ERROR_DEBUG_STR(s) |
#endif |
#if defined(USE_DEBUGGING) |
#define DEBUG_ASSERT(x,f) \ |
if ((x) == 0) { \ |
char msg[256]; \ |
sprintf(msg, "%s %s (%d): (%s)", __FILE__, #f, __LINE__, #x); \ |
debugstr(msg); \ |
} |
#else |
#define DEBUG_ASSERT(x,f) |
#endif |
#if defined(SYSTEM_BEEP) |
#undef SYSTEM_BEEP |
#define SYSTEM_BEEP() System_Beep() |
#include "WRay_System.h" |
#else |
#define SYSTEM_BEEP() |
#endif |
#ifdef __cplusplus |
} |
#endif |
#endif /* _HWRay_Error */ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14