mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: add utility macro to log JNI references table.
This commit is contained in:
parent
6e5b6b3eb1
commit
f2fc06b447
1 changed files with 8 additions and 0 deletions
|
|
@ -346,6 +346,14 @@ DECLARE_JNI_CLASS (AndroidBitmap, "android/graphics/Bitmap");
|
|||
DECLARE_JNI_CLASS (AndroidBitmapConfig, "android/graphics/Bitmap$Config");
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \
|
||||
STATICMETHOD (dumpReferenceTables, "dumpReferenceTables", "()V")
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidDebug, "android/os/Debug");
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JUCE_LOG_JNI_REFERENCES_TABLE getEnv()->CallStaticVoidMethod (AndroidDebug, AndroidDebug.dumpReferenceTables);
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \
|
||||
STATICMETHOD (createChooser, "createChooser", "(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;") \
|
||||
METHOD (addCategory, "addCategory", "(Ljava/lang/String;)Landroid/content/Intent;") \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue