Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / openldap / dist / libraries / liblber / assert.c
blob86bc7510ff48cce228b9a232e79cf54dd723d971
1 /* $OpenLDAP: pkg/ldap/libraries/liblber/assert.c,v 1.13.2.3 2008/02/11 23:26:41 kurt Exp $ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2008 The OpenLDAP Foundation.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
9 * Public License.
11 * A copy of this license is available in the file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
16 #include "portable.h"
18 #ifdef LDAP_NEED_ASSERT
20 #include <stdio.h>
23 * helper for our private assert() macro
25 * note: if assert() doesn't exist, like abort() or raise() won't either.
26 * could use kill() but that might be problematic. I'll just ignore this
27 * issue for now.
30 void
31 ber_pvt_assert( const char *file, int line, const char *test )
33 fprintf(stderr,
34 _("Assertion failed: %s, file %s, line %d\n"),
35 test, file, line);
37 abort();
40 #endif