| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// JNI functions for the Go <=> Java bridge. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=java |
| 6 |
|
| 7 |
#include <android/log.h> |
| 8 |
#include <stdint.h> |
| 9 |
#include "seq.h" |
| 10 |
#include "_cgo_export.h" |
| 11 |
#include "universe.h" |
| 12 |
|
| 13 |
jclass proxy_class__error; |
| 14 |
jmethodID proxy_class__error_cons; |
| 15 |
static jmethodID mid_error_Error; |
| 16 |
|
| 17 |
JNIEXPORT void JNICALL |
| 18 |
Java_go_Universe__1init(JNIEnv *env, jclass _unused) { |
| 19 |
jclass clazz; |
| 20 |
clazz = (*env)->FindClass(env, "go/Universe$proxyerror"); |
| 21 |
proxy_class__error = (*env)->NewGlobalRef(env, clazz); |
| 22 |
proxy_class__error_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); |
| 23 |
clazz = (*env)->FindClass(env, "java/lang/Throwable"); |
| 24 |
mid_error_Error = (*env)->GetMethodID(env, clazz, "getMessage", "()Ljava/lang/String;"); |
| 25 |
} |
| 26 |
|
| 27 |
JNIEXPORT jstring JNICALL |
| 28 |
Java_go_Universe_00024proxyerror_error(JNIEnv* env, jobject __this__) { |
| 29 |
int32_t o = go_seq_to_refnum_go(env, __this__); |
| 30 |
nstring r0 = proxy_error_Error(o); |
| 31 |
jstring _r0 = go_seq_to_java_string(env, r0); |
| 32 |
return _r0; |
| 33 |
} |
| 34 |
|
| 35 |
nstring cproxy_error_Error(int32_t refnum) { |
| 36 |
JNIEnv *env = go_seq_push_local_frame(0); |
| 37 |
jobject o = go_seq_from_refnum(env, refnum, proxy_class__error, proxy_class__error_cons); |
| 38 |
jstring res = (*env)->CallObjectMethod(env, o, mid_error_Error); |
| 39 |
nstring _res = go_seq_from_java_string(env, res); |
| 40 |
go_seq_pop_local_frame(env); |
| 41 |
return _res; |
| 42 |
} |
| 43 |
|