提交 | 用户 | 时间
|
f7932f
|
1 |
#include "pch.h"//stdafx.h ͷ�ļ�Ԥ���빦�� |
D |
2 |
#include "Environment.h" |
|
3 |
#include "pyutils.h" |
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
JNIEXPORT jint Java_iail_mdk_model_common_Environment_jniInit |
|
8 |
(JNIEnv *env, jobject) { |
|
9 |
return py_initialize(); |
|
10 |
} |
|
11 |
|
|
12 |
JNIEXPORT jint Java_iail_mdk_model_common_Environment_jniIsInit |
|
13 |
(JNIEnv *env, jobject) { |
|
14 |
|
|
15 |
return py_isInitialized(); |
|
16 |
|
|
17 |
} |
|
18 |
|
|
19 |
JNIEXPORT jint JNICALL Java_iail_mdk_model_common_Environment_jniRelease |
|
20 |
(JNIEnv *env, jobject) { |
|
21 |
return py_finalize(); |
|
22 |
} |
|
23 |
//���� |
|
24 |
//JNIEXPORT jint JNICALL Java_iail_mdk_model_common_Environment_statusCode |
|
25 |
//(JNIEnv *env, jobject) { |
|
26 |
// return checkCode(); |
|
27 |
//} |