-
Notifications
You must be signed in to change notification settings - Fork 0
/
VM_JNI.h
82 lines (72 loc) · 1.63 KB
/
VM_JNI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* Header for class VM */
#ifndef _Included_VM
#define _Included_VM
#include <jni.h>
#include <VM.h>
VM vm;
std::vector<Value>* mem = new std::vector<Value>();
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: VM
* Method: runWithString
* Signature: (BLjava/lang/String;)V
*/
JNIEXPORT void JNICALL Java_VM_runWithString
(JNIEnv *, jobject, jbyte, jstring);
/*
* Class: VM
* Method: runWithDouble
* Signature: (BLjava/lang/String;)V
*/
JNIEXPORT void JNICALL Java_VM_runWithDouble
(JNIEnv *, jobject, jbyte, jstring);
/*
* Class: VM
* Method: runWithBoolean
* Signature: (BZ)V
*/
JNIEXPORT void JNICALL Java_VM_runWithBoolean
(JNIEnv *, jobject, jbyte, jboolean);
/*
* Class: VM
* Method: disassembleWithString
* Signature: (BLjava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_VM_disassembleWithString
(JNIEnv *, jobject, jbyte, jstring);
/*
* Class: VM
* Method: disassembleWithDouble
* Signature: (BLjava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_VM_disassembleWithDouble
(JNIEnv *, jobject, jbyte, jstring);
/*
* Class: VM
* Method: disassembleWithBoolean
* Signature: (BZ)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_VM_disassembleWithBoolean
(JNIEnv *, jobject, jbyte, jboolean);
/*
* Class: VM
* Method: init
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_VM_init
(JNIEnv *, jobject);
/*
* Class: VM
* Method: run
* Signature: (B)V
*/
JNIEXPORT void JNICALL Java_VM_run
(JNIEnv *, jobject, jbyte);
JNIEXPORT jstring JNICALL Java_VM_pop
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif