mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-11 16:40:36 +08:00
21 lines
488 B
C
21 lines
488 B
C
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#ifndef NcCheckFunction
|
||
|
#define NcCheckFunction
|
||
|
|
||
|
namespace netCDF
|
||
|
{
|
||
|
/*!
|
||
|
Function checks error code and if necessary throws an exception.
|
||
|
\param retCode Integer value returned by %netCDF C-routines.
|
||
|
\param file The name of the file from which this call originates.
|
||
|
\param line The line number in the file from which this call originates.
|
||
|
*/
|
||
|
void ncCheck(int retCode,char* file,int line);
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|