1 /*-------------------------------------------------------------------------
6 * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.23 2002/09/04 20:31:30 momjian Exp $
14 * This should eventually work with elog()
16 *-------------------------------------------------------------------------
23 * ExceptionalCondition - Handles the failure of an Assert()
26 ExceptionalCondition(char *conditionName,
31 if (!PointerIsValid(conditionName)
32 || !PointerIsValid(fileName)
33 || !PointerIsValid(errorType))
34 fprintf(stderr, "TRAP: ExceptionalCondition: bad arguments\n");
37 fprintf(stderr, "TRAP: %s(\"%s\", File: \"%s\", Line: %d)\n",
38 errorType, conditionName,
39 fileName, lineNumber);
42 #ifdef SLEEP_ON_ASSERT