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.22 2002/08/10 20:29:18 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))
35 fprintf(stderr, "TRAP: ExceptionalCondition: bad arguments\n");
39 fprintf(stderr, "TRAP: %s(\"%s\", File: \"%s\", Line: %d)\n",
40 errorType, conditionName,
41 fileName, lineNumber);
44 #ifdef SLEEP_ON_ASSERT