jdk/src/share/native/common/jni_util.h
changeset 22258 db80f864ed8f
parent 21278 ef8a3a2a72f2
child 22637 d4b45e70a981
equal deleted inserted replaced
22257:0266d88a6ec6 22258:db80f864ed8f
   276  */
   276  */
   277 
   277 
   278 #define IS_NULL(obj) ((obj) == NULL)
   278 #define IS_NULL(obj) ((obj) == NULL)
   279 #define JNU_IsNull(env,obj) ((obj) == NULL)
   279 #define JNU_IsNull(env,obj) ((obj) == NULL)
   280 
   280 
       
   281 /************************************************************************
       
   282  * Miscellaneous utilities used by the class libraries to check for exceptions
       
   283  */
       
   284 
       
   285 #define CHECK_NULL(x) if ((x) == NULL) return;
       
   286 #define CHECK_NULL_RETURN(x, y) if ((x) == NULL) return (y);
       
   287 
       
   288 #define CHECK_EXCEPTION(env) if ((*env)->ExceptionCheck(env)) return;
       
   289 #define CHECK_EXCEPTION_RETURN(env, y) if ((*env)->ExceptionCheck(env)) return (y);
   281 
   290 
   282 /************************************************************************
   291 /************************************************************************
   283  * Debugging utilities
   292  * Debugging utilities
   284  */
   293  */
   285 
   294