src/main/c/jnlua.c
static jclass referenceclass(JNIEnv *env, const char *className) {
	jclass clazz;

	clazz = (*env)->FindClass(env, className);
	if (!clazz) {
		return NULL;
	}
	return (*env)->NewGlobalRef(env, clazz);
}
/* ---- JNI helpers ---- */
/* Finds a class and returns a new JNI global reference to it. */
JNI helpers
Finds a class and returns a new JNI global reference to it.
JNI helpers Finds a class and returns a new JNI global reference to it .
static jclass referenceclass(JNIEnv *env, const char *className) {
	jclass clazz;
	clazz = (*env)->FindClass(env, className);
	if (!clazz) {
		return NULL;
	}
	return (*env)->NewGlobalRef(env, clazz);
}
static jclass referenceclass ( JNIEnv * env , const char * className ) { jclass clazz ; clazz = ( * env ) -> FindClass ( env , className ) ; if ( ! clazz ) { return NULL ; } return ( * env ) -> NewGlobalRef ( env , clazz ) ; }
JNI helpers 
Finds a class and returns a new JNI global reference to it.
JNI helpers Finds a class and returns a new JNI global reference to it .