235 char **argv; 236 int mode; 237 char *what; 238 InvocationFunctions ifn; 239 } JavaMainArgs; 240 241 #define NULL_CHECK_RETURN_VALUE(NCRV_check_pointer, NCRV_return_value) \ 242 do { \ 243 if ((NCRV_check_pointer) == NULL) { \ 244 JLI_ReportErrorMessage(JNI_ERROR); \ 245 return NCRV_return_value; \ 246 } \ 247 } while (JNI_FALSE) 248 249 #define NULL_CHECK0(NC0_check_pointer) \ 250 NULL_CHECK_RETURN_VALUE(NC0_check_pointer, 0) 251 252 #define NULL_CHECK(NC_check_pointer) \ 253 NULL_CHECK_RETURN_VALUE(NC_check_pointer, ) 254 255 #define CHECK_EXCEPTION_RETURN() \ 256 do { \ 257 if ((*env)->ExceptionOccurred(env)) { \ 258 return; \ 259 } \ 260 } while (JNI_FALSE) 261 262 #endif /* _JAVA_H_ */ | 235 char **argv; 236 int mode; 237 char *what; 238 InvocationFunctions ifn; 239 } JavaMainArgs; 240 241 #define NULL_CHECK_RETURN_VALUE(NCRV_check_pointer, NCRV_return_value) \ 242 do { \ 243 if ((NCRV_check_pointer) == NULL) { \ 244 JLI_ReportErrorMessage(JNI_ERROR); \ 245 return NCRV_return_value; \ 246 } \ 247 } while (JNI_FALSE) 248 249 #define NULL_CHECK0(NC0_check_pointer) \ 250 NULL_CHECK_RETURN_VALUE(NC0_check_pointer, 0) 251 252 #define NULL_CHECK(NC_check_pointer) \ 253 NULL_CHECK_RETURN_VALUE(NC_check_pointer, ) 254 255 #define NULL_CHECK_WITHOUT_EXCEPTION_CHECK(NCRV_check_pointer) \ 256 do { \ 257 if ((NCRV_check_pointer) == NULL) { \ 258 return; \ 259 } \ 260 } while (JNI_FALSE) 261 262 #define CHECK_EXCEPTION_RETURN() \ 263 do { \ 264 if ((*env)->ExceptionOccurred(env)) { \ 265 return; \ 266 } \ 267 } while (JNI_FALSE) 268 269 #endif /* _JAVA_H_ */ |