NFFT
3.4.1
Main Page
Modules
Data Structures
Files
File List
Globals
kernel
util
assert.c
1
/*
2
* Copyright (c) 2002, 2017 Jens Keiner, Stefan Kunis, Daniel Potts
3
*
4
* This program is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU General Public License as published by the Free Software
6
* Foundation; either version 2 of the License, or (at your option) any later
7
* version.
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12
* details.
13
*
14
* You should have received a copy of the GNU General Public License along with
15
* this program; if not, write to the Free Software Foundation, Inc., 51
16
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
*/
18
19
#include "infft.h"
20
25
void
Y(assertion_failed)(
const
char
*s,
int
line,
const
char
*file)
26
{
27
fflush(stdout);
28
fprintf(stderr,
"nfft: %s:%d: assertion failed: %s\n"
, file, line, s);
29
#ifdef HAVE_ABORT
30
/* Use abort function. */
31
abort();
32
#else
33
/* Use exit function. */
34
exit(EXIT_FAILURE);
35
#endif
36
}
Generated on Thu Apr 12 2018 21:00:49 for NFFT by
1.8.6