netcdf-c/cxx4/ncCheck.h

21 lines
488 B
C
Raw Normal View History

2010-06-03 21:25:11 +08:00
#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