2001-02-10 03:31:31 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* postgres_fe.h
|
|
|
|
* Primary include file for PostgreSQL client-side .c files
|
|
|
|
*
|
|
|
|
* This should be the first file included by PostgreSQL client libraries and
|
|
|
|
* application programs --- but not by backend modules, which should include
|
|
|
|
* postgres.h.
|
|
|
|
*
|
|
|
|
*
|
2012-01-02 00:01:58 +01:00
|
|
|
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
|
2001-02-10 03:31:31 +01:00
|
|
|
* Portions Copyright (c) 1995, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/postgres_fe.h
|
2001-02-10 03:31:31 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef POSTGRES_FE_H
|
|
|
|
#define POSTGRES_FE_H
|
|
|
|
|
2007-09-27 21:53:44 +02:00
|
|
|
#ifndef FRONTEND
|
|
|
|
#define FRONTEND 1
|
|
|
|
#endif
|
|
|
|
|
2001-02-10 03:31:31 +01:00
|
|
|
#include "c.h"
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2012-12-15 00:03:07 +01:00
|
|
|
/*
|
|
|
|
* Assert() can be used in both frontend and backend code. In frontend code it
|
|
|
|
* just calls the standard assert, if it's available. If use of assertions is
|
|
|
|
* not configured, it does nothing.
|
|
|
|
*/
|
|
|
|
#ifdef USE_ASSERT_CHECKING
|
|
|
|
#include <assert.h>
|
|
|
|
#define Assert(p) assert(p)
|
|
|
|
#else
|
|
|
|
#define Assert(p)
|
|
|
|
#endif
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* POSTGRES_FE_H */
|