mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
28 lines
602 B
C++
28 lines
602 B
C++
#ifndef mozilla_jni_Utils_h__
|
|
#define mozilla_jni_Utils_h__
|
|
|
|
#include <jni.h>
|
|
|
|
#include "mozilla/Types.h"
|
|
|
|
/* See the comment in AndroidBridge about this function before using it */
|
|
extern "C" MOZ_EXPORT JNIEnv * GetJNIForThread();
|
|
|
|
namespace mozilla {
|
|
namespace jni {
|
|
|
|
bool ThrowException(JNIEnv *aEnv, const char *aClass,
|
|
const char *aMessage);
|
|
|
|
inline bool ThrowException(JNIEnv *aEnv, const char *aMessage)
|
|
{
|
|
return ThrowException(aEnv, "java/lang/Exception", aMessage);
|
|
}
|
|
|
|
void HandleUncaughtException(JNIEnv *aEnv);
|
|
|
|
} // jni
|
|
} // mozilla
|
|
|
|
#endif // mozilla_jni_Utils_h__
|