mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
14 lines
300 B
C++
14 lines
300 B
C++
#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);
|
|
}
|