1 /*++ 2 3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> 4 This program and the accompanying materials 5 are licensed and made available under the terms and conditions of the BSD License 6 which accompanies this distribution. The full text of the license may be found at 7 http://opensource.org/licenses/bsd-license.php 8 9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11 12 Module Name: 13 14 Exceptions.h 15 16 Abstract: 17 18 Defines and function prototypes for the ProcessDsc utility. 19 20 --*/ 21 22 #ifndef _EXCEPTIONS_H_ 23 #define _EXCEPTIONS_H_ 24 25 #define VOID void 26 #define MAX_EXCEPTION_NESTING 4 27 28 // 29 // Function prototypes 30 // 31 int 32 InitExceptions ( 33 VOID 34 ); 35 int 36 TryException ( 37 VOID 38 ); 39 char * 40 CatchException ( 41 VOID 42 ); 43 int 44 ExceptionThrown ( 45 VOID 46 ); 47 int 48 ThrowException ( 49 char *EMsg 50 ); 51 52 #endif // ifndef _EXCEPTIONS_H_ 53