00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef VERIFY_H
00022 #define VERIFY_H
00023 #define VERIFY_ONLINE_REQUEST(TR,ERR)\
00024 if(((TR)&~(fid_TABLE_TIS|fid_TABLE_OIS|fid_TABLE_DES)) != 0)\
00025 {\
00026 fid_error_throw(ERR,"%s(): unsupported values in online tables request "\
00027 "0x" fid_TABREQFMT,__func__,(fid_Tablerequest)(TR));\
00028 fid_NOTIMPLEMENTED(ERR);\
00029 }
00030
00031 #define VERIFY_OFFLINE_REQUEST(TR,ERR)\
00032 if(((TR)&~(fid_TABLE_SUF|fid_TABLE_LCP|fid_TABLE_SKP|fid_TABLE_STI)) != 0)\
00033 {\
00034 fid_error_throw(ERR,"%s(): unsupported values in offline tables request "\
00035 "0x" fid_TABREQFMT,__func__,(fid_Tablerequest)(TR));\
00036 fid_NOTIMPLEMENTED(ERR);\
00037 }
00038
00039 #define VERIFY_REQUEST(TR,ERR)\
00040 VERIFY_ONLINE_REQUEST((TR)&fid_TABLES_ONLINE_MASK,ERR);\
00041 VERIFY_OFFLINE_REQUEST((TR)&fid_TABLES_OFFLINE_MASK,ERR)
00042
00043 #endif