Protect ubik cache accesses
[openafs.git] / src / budb / error_macros.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #define ERROR(evalue)                                           \
11         {                                                       \
12             code = evalue;                                      \
13             goto error_exit;                                    \
14         }
15
16 #define ABORT(evalue)                                           \
17         {                                                       \
18             code = evalue;                                      \
19             goto abort_exit;                                    \
20         }
21
22 #define BUDB_EXIT(evalue)                                       \
23         {                                                       \
24             osi_audit(BUDB_ExitEvent, evalue, AUD_END);         \
25             exit(evalue);                                       \
26         }