8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-29 06:43:03 +01:00
firebird-mirror/src/jrd/iberr.h

60 lines
1.9 KiB
C
Raw Normal View History

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.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.
*/
#define INIT_STATUS(status) status [0] = isc_arg_gds;\
2001-05-23 15:26:42 +02:00
status [1] = 0;\
status [2] = isc_arg_end
2001-05-23 15:26:42 +02: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) \
{ \
va_list args; \
va_start (args, status); \
STUFF_STATUS_function(status_vector, status, args); \
}
2001-05-23 15:26:42 +02:00
#endif /* JRD_IBERR_H */