aboutsummaryrefslogtreecommitdiff
path: root/src/pdj.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdj.h')
-rw-r--r--src/pdj.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pdj.h b/src/pdj.h
index d318ded..f8755e8 100644
--- a/src/pdj.h
+++ b/src/pdj.h
@@ -3,11 +3,12 @@
#ifdef DEBUG
#define ASSERT(v) { if ( v == NULL ) {bug("ouch, assertion failed %s:%d\n", __FILE__, __LINE__);}}
- #define JASSERT(v) { if ( v == NULL ){(*env)->ExceptionDescribe(env);bug("ouch, assertion failed %s:%d\n", __FILE__, __LINE__);}}
+ #define JASSERT(v) { if ( v == NULL ) {(*env)->ExceptionDescribe(env);bug("ouch, jni assertion failed %s:%d\n", __FILE__, __LINE__);}}
#undef DEBUG
#define DEBUG(X) {X};
#else
#define ASSERT(v)
+ #undef DEBUG
#define DEBUG(X)
#define JASSERT(v)
#endif
@@ -28,6 +29,12 @@
#define PATH_SEP ":"
#endif
+#ifdef __LP64__
+ #define JPOINTER_CAST (unsigned long)
+#else
+ #define JPOINTER_CAST (unsigned int)
+#endif
+
// the JVM takes 50M; I don't care taking 4K...
#define BUFFER_SIZE 4096