< prev index next >

src/java.desktop/share/native/common/awt/debug/debug_assert.h

Print this page
rev 52923 : 8226346: Build better binary builders
Reviewed-by: andrew

@@ -30,26 +30,21 @@
 extern "C" {
 #endif
 
 #include "debug_util.h"
 
-/* Use THIS_FILE when it is available. */
-#ifndef THIS_FILE
-    #define THIS_FILE __FILE__
-#endif
-
 #if defined(DEBUG)
 
 #define DASSERT(_expr) \
         if ( !(_expr) ) { \
-            DAssert_Impl( #_expr, THIS_FILE, __LINE__); \
+            DAssert_Impl( #_expr, __FILE__, __LINE__); \
         } else { \
         }
 
 #define DASSERTMSG(_expr, _msg) \
         if ( !(_expr) ) { \
-            DAssert_Impl( (_msg), THIS_FILE, __LINE__); \
+            DAssert_Impl( (_msg), __FILE__, __LINE__); \
         } else { \
         }
 
 /* prototype for assert function */
 typedef void (*DASSERT_CALLBACK)(const char * msg, const char * file, int line);
< prev index next >