mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-04-20 11:28:15 +02:00
12 lines
240 B
C
12 lines
240 B
C
#include <jni.h>
|
|
#include "jni_util.h"
|
|
|
|
void JNICALL
|
|
throwException(JNIEnv *env, const char *type, const char *msg)
|
|
{
|
|
jclass klazz = (*env)->FindClass(env, type);
|
|
|
|
if (klazz != 0) {
|
|
(*env)->ThrowNew(env, klazz, msg);
|
|
}
|
|
} |