Jump to content
Go to the documentation of this file. 1 #ifndef _PASSTHEBUCK_H_
2 #define _PASSTHEBUCK_H_
5 #define FILE_ALREADY_EXISTS 1
6 #define MEMORY_ALLOCATION_ERROR 2
7 #define HDF_FUNCTION_ERROR 3
8 #define PROGRAMMER_BOOBOO 4
9 #define CALDATA_NOT_APPENDED 5
10 #define MISSING_ENVVAR 6
11 #define STAT_FAILURE 7
12 #define FILE_IS_EMPTY 8
13 #define FOPEN_FAILURE 9
14 #define FREAD_FAILURE 10
16 #define PTB(function){ \
17 int status = function; \
19 case LIFE_IS_GOOD: break; \
20 default: return(status); \
24 #define DPTB(function){ \
25 int status = function; \
27 case LIFE_IS_GOOD: break; \
28 default: printf("Programming error: file %s, line %d\n",__FILE__,__LINE__); exit(1); \