= (*android_java_env)->GetMethodID (android_java_env, \
service_class.class, \
name, signature); \
- assert (service_class.c_name);
+ eassert (service_class.c_name);
FIND_METHOD (fill_rectangle, "fillRectangle",
"(Lorg/gnu/emacs/EmacsDrawable;"
= (*android_java_env)->GetMethodID (android_java_env, \
pixmap_class.class, \
name, signature); \
- assert (pixmap_class.c_name);
+ eassert (pixmap_class.c_name);
FIND_METHOD (constructor_mutable, "<init>", "(SIII)V");
= (*android_java_env)->GetMethodID (android_java_env, \
point_class.class, \
name, signature); \
- assert (point_class.c_name);
+ eassert (point_class.c_name);
FIND_METHOD (constructor, "<init>", "(II)V");
#undef FIND_METHOD
= (*android_java_env)->GetMethodID (android_java_env, \
drawable_class.class, \
name, signature); \
- assert (drawable_class.c_name);
+ eassert (drawable_class.c_name);
FIND_METHOD (get_bitmap, "getBitmap", "()Landroid/graphics/Bitmap;");
#undef FIND_METHOD
= (*android_java_env)->GetMethodID (android_java_env, \
window_class.class, \
name, signature); \
- assert (window_class.c_name);
+ eassert (window_class.c_name);
FIND_METHOD (swap_buffers, "swapBuffers", "()V");
FIND_METHOD (toggle_on_screen_keyboard,
= (*android_java_env)->GetMethodID (android_java_env, \
cursor_class.class, \
name, signature); \
- assert (cursor_class.c_name);
+ eassert (cursor_class.c_name);
FIND_METHOD (constructor, "<init>", "(SI)V");
#undef FIND_METHOD
class
= (*android_java_env)->FindClass (android_java_env,
"org/gnu/emacs/EmacsHandleObject");
- assert (class != NULL);
+ eassert (class != NULL);
method
= (*android_java_env)->GetMethodID (android_java_env, class,
"destroyHandle", "()V");
- assert (method != NULL);
+ eassert (method != NULL);
old = class;
class
{
class = (*android_java_env)->FindClass (android_java_env,
"org/gnu/emacs/EmacsWindow");
- assert (class != NULL);
+ eassert (class != NULL);
constructor
= (*android_java_env)->GetMethodID (android_java_env, class, "<init>",
"(SLorg/gnu/emacs/EmacsWindow;"
"IIIIZ)V");
- assert (constructor != NULL);
+ eassert (constructor != NULL);
old = class;
class = (*android_java_env)->NewGlobalRef (android_java_env, class);
android_rect_class
= (*android_java_env)->FindClass (android_java_env,
"android/graphics/Rect");
- assert (android_rect_class);
+ eassert (android_rect_class);
android_rect_constructor
= (*android_java_env)->GetMethodID (android_java_env, android_rect_class,
"<init>", "(IIII)V");
- assert (emacs_gc_constructor);
+ eassert (emacs_gc_constructor);
old = android_rect_class;
android_rect_class
emacs_gc_class
= (*android_java_env)->FindClass (android_java_env,
"org/gnu/emacs/EmacsGC");
- assert (emacs_gc_class);
+ eassert (emacs_gc_class);
emacs_gc_constructor
= (*android_java_env)->GetMethodID (android_java_env,
emacs_gc_class,
"<init>", "(S)V");
- assert (emacs_gc_constructor);
+ eassert (emacs_gc_constructor);
emacs_gc_mark_dirty
= (*android_java_env)->GetMethodID (android_java_env,
emacs_gc_class,
"markDirty", "(Z)V");
- assert (emacs_gc_mark_dirty);
+ eassert (emacs_gc_mark_dirty);
old = emacs_gc_class;
emacs_gc_class
if (old == 1)
{
/* Answer the query that is currently being made. */
- assert (android_query_function != NULL);
+ eassert (android_query_function != NULL);
android_answer_query ();
}
= (*android_java_env)->GetMethodID (android_java_env, \
clipboard_class.class, \
name, signature); \
- assert (clipboard_class.c_name);
+ eassert (clipboard_class.c_name);
FIND_METHOD (set_clipboard, "setClipboard", "([B)V");
FIND_METHOD (owns_clipboard, "ownsClipboard", "()I");
"makeClipboard",
"()Lorg/gnu/emacs/"
"EmacsClipboard;");
- assert (clipboard_class.make_clipboard);
+ eassert (clipboard_class.make_clipboard);
#undef FIND_METHOD
}
= (*android_java_env)->GetMethodID (android_java_env, \
notification_class.class, \
name, signature); \
- assert (notification_class.c_name);
+ eassert (notification_class.c_name);
FIND_METHOD (init, "<init>", "(Ljava/lang/String;"
"Ljava/lang/String;Ljava/lang/String;"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
-#include <assert.h>
#include <semaphore.h>
#include "lisp.h"
class
= (*env)->FindClass (env, ("android/view/inputmethod"
"/ExtractedTextRequest"));
- assert (class);
+ eassert (class);
request_class.hint_max_chars
= (*env)->GetFieldID (env, class, "hintMaxChars", "I");
- assert (request_class.hint_max_chars);
+ eassert (request_class.hint_max_chars);
request_class.token
= (*env)->GetFieldID (env, class, "token", "I");
- assert (request_class.token);
+ eassert (request_class.token);
request_class.initialized = true;
}
text_class.class
= (*env)->FindClass (env, ("android/view/inputmethod"
"/ExtractedText"));
- assert (text_class.class);
+ eassert (text_class.class);
class
= text_class.class
= (*env)->NewGlobalRef (env, text_class.class);
- assert (text_class.class);
+ eassert (text_class.class);
text_class.flags
= (*env)->GetFieldID (env, class, "flags", "I");
return NULL;
}
#else /* __ANDROID_API__ >= 31 */
- assert (class);
+ eassert (class);
#endif /* __ANDROID_API__ < 31 */
class = (*env)->NewGlobalRef (env, class);
/* Now look for its constructor. */
constructor = (*env)->GetMethodID (env, class, "<init>",
"(Ljava/lang/CharSequence;III)V");
- assert (constructor);
+ eassert (constructor);
}
context.before_length = before_length;
return NULL;
}
#else /* __ANDROID_API__ >= 33 */
- assert (class);
+ eassert (class);
#endif /* __ANDROID_API__ < 33 */
class = (*env)->NewGlobalRef (env, class);
constructor = (*env)->GetMethodID (env, class, "<init>",
"(Landroid/view/inputmethod"
"/SurroundingText;III)V");
- assert (constructor);
+ eassert (constructor);
}
/* Try to create a TextSnapshot object. */