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.
Exceptions.cp
/*------------------------------------------------------------------------------------------ |
Program: CPlusTESample 2.0 |
File: Exceptions.cp |
Uses: Exceptions.h |
by Andrew Shebanow |
of Apple Macintosh Developer Technical Support |
Copyright © 1989-1990 Apple Computer, Inc. |
All rights reserved. |
------------------------------------------------------------------------------------------*/ |
#include "Exceptions.h" |
extern "C" { |
long gFailMessage; // Current failure message |
short gFailError; // Current failure error |
}; |
pascal void StandardHandler(short e, long m, void* Handler_StaticLink) |
{ |
gFailError = e; |
gFailMessage = m; |
longjmp((jmp_buf) Handler_StaticLink, 1); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14