netcdf-c/cxx4/ncCheck.h
2010-06-03 13:25:11 +00:00

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