4
* assert.h is a part of binkd project
6
* Copyright (C) 1997 Dima Maloff, 5047/13
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version. See COPYING.
15
* $Id: assert.h,v 2.0 2001/01/10 12:12:37 gul Exp $
18
* Revision 2.0 2001/01/10 12:12:37 gul
19
* Binkd is under CVS again
21
* Revision 1.1 1997/03/28 06:56:22 mff
31
#define assert(exp) ((void)0)
34
#define assert(exp) if ((exp)==0) \
35
{ int hcore=open("c:\\binkd.core",O_BINARY|O_RDWR|O_CREAT,0600); \
36
if (hcore!=-1) _core(hcore), close(hcore); \
37
Log (0, "%s: %i: %s: assertion failed", __FILE__, __LINE__, #exp); \
40
#define assert(exp) ((exp) ? (void)0 : \
41
Log (0, "%s: %i: %s: assertion failed", __FILE__, __LINE__, #exp))