< prev index next >
src/java.instrument/share/native/libinstrument/JPLISAssert.h
Print this page
rev 52923 : 8226346: Build better binary builders
Reviewed-by: andrew
*** 47,64 ****
#ifndef JPLISASSERT_ENABLEASSERTIONS
#define JPLISASSERT_ENABLEASSERTIONS (0)
#endif
- /* Use THIS_FILE when it is available. */
- #ifndef THIS_FILE
- #define THIS_FILE __FILE__
- #endif
-
#if JPLISASSERT_ENABLEASSERTIONS
! #define jplis_assert(x) JPLISAssertCondition((jboolean)(x), #x, THIS_FILE, __LINE__)
! #define jplis_assert_msg(x, msg) JPLISAssertConditionWithMessage((jboolean)(x), #x, msg, THIS_FILE, __LINE__)
#else
#define jplis_assert(x)
#define jplis_assert_msg(x, msg)
#endif
--- 47,59 ----
#ifndef JPLISASSERT_ENABLEASSERTIONS
#define JPLISASSERT_ENABLEASSERTIONS (0)
#endif
#if JPLISASSERT_ENABLEASSERTIONS
! #define jplis_assert(x) JPLISAssertCondition((jboolean)(x), #x, __FILE__, __LINE__)
! #define jplis_assert_msg(x, msg) JPLISAssertConditionWithMessage((jboolean)(x), #x, msg, __FILE__, __LINE__)
#else
#define jplis_assert(x)
#define jplis_assert_msg(x, msg)
#endif
< prev index next >