1
0
Fork 0
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:
Lukasz Kozakiewicz 2018-01-12 12:40:14 +01:00
parent 6e5b6b3eb1
commit f2fc06b447

View file

@ -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;") \