src/share/npt/utf.h
Print this page
*** 31,42 ****
#include <stdio.h>
#include "jni.h"
#include "utf_md.h"
/* Error and assert macros */
! #define UTF_ERROR(m) utfError(__FILE__, __LINE__, m)
#define UTF_ASSERT(x) ( (x)==0 ? UTF_ERROR("ASSERT ERROR " #x) : (void)0 )
void utfError(char *file, int line, char *message);
struct UtfInst* JNICALL utfInitialize
--- 31,47 ----
#include <stdio.h>
#include "jni.h"
#include "utf_md.h"
+ /* Use THIS_FILE when it is available. */
+ #ifndef THIS_FILE
+ #define THIS_FILE __FILE__
+ #endif
+
/* Error and assert macros */
! #define UTF_ERROR(m) utfError(THIS_FILE, __LINE__, m)
#define UTF_ASSERT(x) ( (x)==0 ? UTF_ERROR("ASSERT ERROR " #x) : (void)0 )
void utfError(char *file, int line, char *message);
struct UtfInst* JNICALL utfInitialize