aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/compat.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-01-26 14:30:14 -0800
committerChris Robinson <[email protected]>2017-01-26 14:33:03 -0800
commitf0c8b7f255b17a2fcfcf622a78794cde07f033cd (patch)
treeacf95430dc7690d452f6f933c285d21dfcd000ac /Alc/compat.h
parent1ebfce4cac35731f1df5702ce613eada81f6ffa5 (diff)
Get the JavaVM handle on Android targets
Diffstat (limited to 'Alc/compat.h')
-rw-r--r--Alc/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/compat.h b/Alc/compat.h
index 114fc655..247ed05b 100644
--- a/Alc/compat.h
+++ b/Alc/compat.h
@@ -46,4 +46,12 @@ void CloseLib(void *handle);
void *GetSymbol(void *handle, const char *name);
#endif
+#ifdef __ANDROID__
+#define JCALL(obj, func) ((*(obj))->func((obj), EXTRACT_VCALL_ARGS
+#define JCALL0(obj, func) ((*(obj))->func((obj) EXTRACT_VCALL_ARGS
+
+/** Returns a JNIEnv*. */
+void *Android_GetJNIEnv(void);
+#endif
+
#endif /* AL_COMPAT_H */