425N/A/*
425N/A * dpsassert.h
1276N/A *
425N/A * (c) Copyright 1991-1994 Adobe Systems Incorporated.
1345N/A * All rights reserved.
425N/A *
425N/A * Permission to use, copy, modify, distribute, and sublicense this software
919N/A * and its documentation for any purpose and without fee is hereby granted,
919N/A * provided that the above copyright notices appear in all copies and that
919N/A * both those copyright notices and this permission notice appear in
919N/A * supporting documentation and that the name of Adobe Systems Incorporated
919N/A * not be used in advertising or publicity pertaining to distribution of the
919N/A * software without specific, written prior permission. No trademark license
919N/A * to use the Adobe trademarks is hereby granted. If the Adobe trademark
919N/A * "Display PostScript"(tm) is used to describe this software, its
919N/A * functionality or for any other purpose, such use shall be limited to a
919N/A * statement that this software works in conjunction with the Display
919N/A * PostScript system. Proper trademark attribution to reflect Adobe's
919N/A * ownership of the trademark shall be given whenever any such reference to
919N/A * the Display PostScript system is made.
919N/A *
919N/A * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
919N/A * ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
919N/A * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
425N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
425N/A * NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE
425N/A * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
425N/A * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
493N/A * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
425N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT
425N/A * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
1370N/A *
425N/A * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
911N/A * Incorporated which may be registered in certain jurisdictions
1370N/A *
1370N/A * Author: Adobe Systems Incorporated
1370N/A */
911N/A
425N/A#ifndef DPSASSERT_H
1276N/A#define DPSASSERT_H
1233N/A
425N/A#include "DPS/dpsclient.h"
425N/A
493N/A#define DPSAssertWarn(cndtn, cntxt, mssg)\
425N/A if (!(cndtn)) DPSWarnProc((DPSContext)(cntxt),(mssg))
425N/A
425N/Aextern void DPSWarnProc(DPSContext ctxt, char *msg);
425N/Aextern void DPSFatalProc(DPSContext ctxt, char *msg);
425N/Aextern void DPSCantHappen(void);
425N/A
493N/A#define DPSAssert(condition) \
425N/A if (! (condition)) DPSCantHappen();
425N/A/* Tests whether the specified condition is true and aborts the
425N/A entire application if not.
425N/A */
425N/A
970N/A#endif /* DPSASSERT_H */
970N/A