src/share/bin/java.h
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 240,255 ****
int mode;
char *what;
InvocationFunctions ifn;
} JavaMainArgs;
! #define NULL_CHECK0(e) if ((e) == 0) { \
JLI_ReportErrorMessage(JNI_ERROR); \
! return 0; \
}
! #define NULL_CHECK(e) if ((e) == 0) { \
! JLI_ReportErrorMessage(JNI_ERROR); \
! return; \
! }
#endif /* _JAVA_H_ */
--- 240,254 ----
int mode;
char *what;
InvocationFunctions ifn;
} JavaMainArgs;
! #define NULL_CHECK_RV(e, rv) if ((e) == 0) { \
JLI_ReportErrorMessage(JNI_ERROR); \
! return rv; \
}
! #define NULL_CHECK0(e) NULL_CHECK_RV(e, 0)
+ #define NULL_CHECK(e) NULL_CHECK_RV(e, )
+
#endif /* _JAVA_H_ */