2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: iberr.h
|
|
|
|
* DESCRIPTION: Interbase error handling definitions.
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-10-29 03:59:57 +01:00
|
|
|
*
|
|
|
|
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "MPEXL" port
|
|
|
|
*
|
2002-10-30 07:40:58 +01:00
|
|
|
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
|
|
|
|
*
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JRD_IBERR_H
|
|
|
|
#define JRD_IBERR_H
|
|
|
|
|
|
|
|
#include "../jrd/gdsassert.h"
|
2001-07-12 07:46:06 +02:00
|
|
|
#include "../jrd/status.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TMN: Leave INIT_STATUS as macro for now. At least "why.c" (what
|
|
|
|
* is to become "y_valve.cpp" need it.
|
|
|
|
*/
|
|
|
|
|
2003-11-11 13:19:20 +01:00
|
|
|
#define INIT_STATUS(status) status [0] = isc_arg_gds;\
|
2001-05-23 15:26:42 +02:00
|
|
|
status [1] = 0;\
|
2003-11-11 13:19:20 +01:00
|
|
|
status [2] = isc_arg_end
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2003-02-12 13:51:07 +01:00
|
|
|
/* TMN: The hits just keep on coming. The macro STUFF_STATUS MUST be
|
|
|
|
* defined so it can get instantiated in the "calling" place because of
|
|
|
|
* the use of varargs. I trimmed this one a bit though by putting the
|
|
|
|
* majority of the macro into a function.
|
|
|
|
*/
|
|
|
|
|
2004-09-24 08:40:13 +02:00
|
|
|
#define STUFF_STATUS(status_vector, status) \
|
2003-02-12 13:51:07 +01:00
|
|
|
{ \
|
|
|
|
va_list args; \
|
2004-05-24 01:28:06 +02:00
|
|
|
va_start (args, status); \
|
2003-02-12 13:51:07 +01:00
|
|
|
STUFF_STATUS_function(status_vector, status, args); \
|
|
|
|
}
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* JRD_IBERR_H */
|