mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
more JNI work
This commit is contained in:
13
classpath/java/lang/System.cpp
Normal file
13
classpath/java/lang/System.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "stdio.h"
|
||||
#include "jni.h"
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Java_java_lang_System_Output_println(JNIEnv* e, jobject, jstring s)
|
||||
{
|
||||
jboolean isCopy;
|
||||
const char* chars = e->GetStringUTFChars(s, &isCopy);
|
||||
if (chars) {
|
||||
printf("%s", chars);
|
||||
}
|
||||
e->ReleaseStringUTFChars(s, chars);
|
||||
}
|
Reference in New Issue
Block a user