-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy patharray.cpp
More file actions
28 lines (23 loc) · 776 Bytes
/
Copy patharray.cpp
File metadata and controls
28 lines (23 loc) · 776 Bytes
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
#include "array.h"
extern "C" {
extern void Polyglot_jlang_runtime_Array_load_class();
extern DispatchVector Polyglot_jlang_runtime_Array_cdv;
extern jclass Polyglot_jlang_runtime_Array_class;
}
static jclass __runtimeArrayClass = nullptr;
static DispatchVector *__runtimeArrayCdv = nullptr;
static void initRuntimeArray() {
if (__runtimeArrayClass == nullptr && __runtimeArrayCdv == nullptr) {
Polyglot_jlang_runtime_Array_load_class();
__runtimeArrayClass = Polyglot_jlang_runtime_Array_class;
__runtimeArrayCdv = &Polyglot_jlang_runtime_Array_cdv;
}
}
jclass getRuntimeArrayClass() {
initRuntimeArray();
return __runtimeArrayClass;
}
DispatchVector *getRuntimeArrayCdv() {
initRuntimeArray();
return __runtimeArrayCdv;
}