File: hdf5debug.c

package info (click to toggle)
netcdf 1%3A4.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 116,236 kB
  • sloc: ansic: 281,201; sh: 14,777; cpp: 6,000; yacc: 2,612; makefile: 2,025; lex: 1,218; javascript: 280; xml: 173; awk: 2
file content (31 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*********************************************************************
 *   Copyright 2018, UCAR/Unidata
 *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
 *********************************************************************/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif

#include "nclog.h"
#include "hdf5debug.h"

#ifdef H5CATCH

int
nch5breakpoint(int err)
{
    return ncbreakpoint(err);
}

int
nch5throw(int err, int line)
{
    if(err == 0) return err;
    fprintf(stderr,">>> hdf5throw: line=%d err=%d\n",line,err); fflush(stderr);
    return nch5breakpoint(err);
}
#endif