/* ANDROID_NONE. */
return NULL;
+ /* CheckJNI will normally ensure that the handle exists and is
+ the right type, but with a less informative error message.
+ Don't waste cycles doing our own checking here. */
+
+#ifdef ENABLE_CHECKING
+
if (!android_handles[handle].handle)
{
__android_log_print (ANDROID_LOG_ERROR, __func__,
emacs_abort ();
}
+#endif /* ENABLE_CHECKING */
+
return android_handles[handle].handle;
}
if (!handle)
return NULL;
+ /* CheckJNI will normally ensure that the handle exists and is
+ the right type, but with a less informative error message.
+ Don't waste cycles doing our own checking here. */
+
+#ifdef ENABLE_CHECKING
+
if (!android_handles[handle].handle)
{
__android_log_print (ANDROID_LOG_ERROR, __func__,
emacs_abort ();
}
+#endif /* ENABLE_CHECKING */
+
return android_handles[handle].handle;
}
(jint) src_x, (jint) src_y,
(jint) width, (jint) height,
(jint) dest_x, (jint) dest_y);
+ android_exception_check ();
}
void
jmethodID method;
window1 = android_resolve_handle (window, ANDROID_HANDLE_WINDOW);
- cursor1 = (cursor
- ? android_resolve_handle (cursor, ANDROID_HANDLE_CURSOR)
- : NULL);
+ cursor1 = android_resolve_handle (cursor, ANDROID_HANDLE_CURSOR);
method = window_class.define_cursor;
(*android_java_env)->CallNonvirtualVoidMethod (android_java_env,