Browse Source

Android: add utility macro to log JNI references table.

tags/2021-05-28
Lukasz Kozakiewicz 7 years ago
parent
commit
f2fc06b447
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      modules/juce_core/native/juce_android_JNIHelpers.h

+ 8
- 0
modules/juce_core/native/juce_android_JNIHelpers.h 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;") \


Loading…
Cancel
Save