objective-lol 0.0.1__cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- objective_lol/__init__.py +5 -0
- objective_lol/_api.cp39-win_amd64.h +543 -0
- objective_lol/_api.cp39-win_amd64.pyd +0 -0
- objective_lol/api.c +5934 -0
- objective_lol/api.go +3562 -0
- objective_lol/api.py +1805 -0
- objective_lol/api_go.h +543 -0
- objective_lol/build.py +341 -0
- objective_lol/go.py +1852 -0
- objective_lol/olol.py +581 -0
- objective_lol-0.0.1.dist-info/METADATA +125 -0
- objective_lol-0.0.1.dist-info/RECORD +14 -0
- objective_lol-0.0.1.dist-info/WHEEL +5 -0
- objective_lol-0.0.1.dist-info/top_level.txt +1 -0
objective_lol/api.go
ADDED
@@ -0,0 +1,3562 @@
|
|
1
|
+
/*
|
2
|
+
cgo stubs for package api.
|
3
|
+
File is generated by gopy. Do not edit.
|
4
|
+
gopy.exe build -no-make -dynamic-link=True -symbols=False -output D:\a\objective-lol\objective-lol\python\build\lib.win-amd64-cpython-39\objective_lol --vm D:\a\objective-lol\objective-lol\python\.toolchain\python\python-3.9.23\bin\python.exe .
|
5
|
+
*/
|
6
|
+
|
7
|
+
package main
|
8
|
+
|
9
|
+
/*
|
10
|
+
|
11
|
+
#cgo CFLAGS: "-ID:/a/objective-lol/objective-lol/python/.toolchain/python/python-3.9.23/include" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
12
|
+
#cgo LDFLAGS:
|
13
|
+
|
14
|
+
// #define Py_LIMITED_API // need full API for PyRun*
|
15
|
+
#include <Python.h>
|
16
|
+
typedef uint8_t bool;
|
17
|
+
// static inline is trick for avoiding need for extra .c file
|
18
|
+
// the following are used for build value -- switch on reflect.Kind
|
19
|
+
// or the types equivalent
|
20
|
+
static inline PyObject* gopy_build_bool(uint8_t val) {
|
21
|
+
return Py_BuildValue("b", val);
|
22
|
+
}
|
23
|
+
static inline PyObject* gopy_build_int64(int64_t val) {
|
24
|
+
return Py_BuildValue("k", val);
|
25
|
+
}
|
26
|
+
static inline PyObject* gopy_build_uint64(uint64_t val) {
|
27
|
+
return Py_BuildValue("K", val);
|
28
|
+
}
|
29
|
+
static inline PyObject* gopy_build_float64(double val) {
|
30
|
+
return Py_BuildValue("d", val);
|
31
|
+
}
|
32
|
+
static inline PyObject* gopy_build_string(const char* val) {
|
33
|
+
return Py_BuildValue("s", val);
|
34
|
+
}
|
35
|
+
static inline void gopy_decref(PyObject* obj) { // macro
|
36
|
+
Py_XDECREF(obj);
|
37
|
+
}
|
38
|
+
static inline void gopy_incref(PyObject* obj) { // macro
|
39
|
+
Py_XINCREF(obj);
|
40
|
+
}
|
41
|
+
static inline int gopy_method_check(PyObject* obj) { // macro
|
42
|
+
return PyMethod_Check(obj);
|
43
|
+
}
|
44
|
+
static inline void gopy_err_handle() {
|
45
|
+
if(PyErr_Occurred() != NULL) {
|
46
|
+
PyErr_Print();
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
*/
|
51
|
+
import "C"
|
52
|
+
import (
|
53
|
+
"errors"
|
54
|
+
"reflect"
|
55
|
+
"unsafe"
|
56
|
+
|
57
|
+
"github.com/go-python/gopy/gopyh" // handler
|
58
|
+
|
59
|
+
"context"
|
60
|
+
"io"
|
61
|
+
"time"
|
62
|
+
|
63
|
+
"github.com/bjia56/objective-lol/pkg/api"
|
64
|
+
"github.com/bjia56/objective-lol/pkg/environment"
|
65
|
+
)
|
66
|
+
|
67
|
+
// main doesn't do anything in lib / pkg mode, but is essential for exe mode
|
68
|
+
func main() {
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
// initialization functions -- can be called from python after library is loaded
|
73
|
+
// GoPyInitRunFile runs a separate python file -- call in GoPyInit if it
|
74
|
+
// steals the main thread e.g., for GUI event loop, as in GoGi startup.
|
75
|
+
|
76
|
+
//export GoPyInit
|
77
|
+
func GoPyInit() {
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
// type for the handle -- int64 for speed (can switch to string)
|
82
|
+
type GoHandle int64
|
83
|
+
type CGoHandle C.longlong
|
84
|
+
|
85
|
+
// DecRef decrements the reference count for the specified handle
|
86
|
+
// and deletes it it goes to zero.
|
87
|
+
//
|
88
|
+
//export DecRef
|
89
|
+
func DecRef(handle CGoHandle) {
|
90
|
+
gopyh.DecRef(gopyh.CGoHandle(handle))
|
91
|
+
}
|
92
|
+
|
93
|
+
// IncRef increments the reference count for the specified handle.
|
94
|
+
//
|
95
|
+
//export IncRef
|
96
|
+
func IncRef(handle CGoHandle) {
|
97
|
+
gopyh.IncRef(gopyh.CGoHandle(handle))
|
98
|
+
}
|
99
|
+
|
100
|
+
// NumHandles returns the number of handles currently in use.
|
101
|
+
//
|
102
|
+
//export NumHandles
|
103
|
+
func NumHandles() int {
|
104
|
+
return gopyh.NumHandles()
|
105
|
+
}
|
106
|
+
|
107
|
+
// boolGoToPy converts a Go bool to python-compatible C.char
|
108
|
+
func boolGoToPy(b bool) C.char {
|
109
|
+
if b {
|
110
|
+
return 1
|
111
|
+
}
|
112
|
+
return 0
|
113
|
+
}
|
114
|
+
|
115
|
+
// boolPyToGo converts a python-compatible C.Char to Go bool
|
116
|
+
func boolPyToGo(b C.char) bool {
|
117
|
+
if b != 0 {
|
118
|
+
return true
|
119
|
+
}
|
120
|
+
return false
|
121
|
+
}
|
122
|
+
|
123
|
+
func complex64GoToPy(c complex64) *C.PyObject {
|
124
|
+
return C.PyComplex_FromDoubles(C.double(real(c)), C.double(imag(c)))
|
125
|
+
}
|
126
|
+
|
127
|
+
func complex64PyToGo(o *C.PyObject) complex64 {
|
128
|
+
v := C.PyComplex_AsCComplex(o)
|
129
|
+
return complex(float32(v.real), float32(v.imag))
|
130
|
+
}
|
131
|
+
|
132
|
+
func complex128GoToPy(c complex128) *C.PyObject {
|
133
|
+
return C.PyComplex_FromDoubles(C.double(real(c)), C.double(imag(c)))
|
134
|
+
}
|
135
|
+
|
136
|
+
func complex128PyToGo(o *C.PyObject) complex128 {
|
137
|
+
v := C.PyComplex_AsCComplex(o)
|
138
|
+
return complex(float64(v.real), float64(v.imag))
|
139
|
+
}
|
140
|
+
|
141
|
+
// errorGoToPy converts a Go error to python-compatible C.CString
|
142
|
+
func errorGoToPy(e error) *C.char {
|
143
|
+
if e != nil {
|
144
|
+
return C.CString(e.Error())
|
145
|
+
}
|
146
|
+
return C.CString("")
|
147
|
+
}
|
148
|
+
|
149
|
+
// --- generated code for package: api below: ---
|
150
|
+
|
151
|
+
// ---- External Types Outside of Targeted Packages ---
|
152
|
+
|
153
|
+
// Converters for pointer handles for type: *environment.Class
|
154
|
+
func ptrFromHandle_Ptr_environment_Class(h CGoHandle) *environment.Class {
|
155
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.Class")
|
156
|
+
if p == nil {
|
157
|
+
return nil
|
158
|
+
}
|
159
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Class{})).(*environment.Class)
|
160
|
+
}
|
161
|
+
func handleFromPtr_Ptr_environment_Class(p interface{}) CGoHandle {
|
162
|
+
return CGoHandle(gopyh.Register("*environment.Class", p))
|
163
|
+
}
|
164
|
+
|
165
|
+
// Converters for pointer handles for type: *environment.Environment
|
166
|
+
func ptrFromHandle_Ptr_environment_Environment(h CGoHandle) *environment.Environment {
|
167
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.Environment")
|
168
|
+
if p == nil {
|
169
|
+
return nil
|
170
|
+
}
|
171
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Environment{})).(*environment.Environment)
|
172
|
+
}
|
173
|
+
func handleFromPtr_Ptr_environment_Environment(p interface{}) CGoHandle {
|
174
|
+
return CGoHandle(gopyh.Register("*environment.Environment", p))
|
175
|
+
}
|
176
|
+
|
177
|
+
// Converters for pointer handles for type: *environment.Function
|
178
|
+
func ptrFromHandle_Ptr_environment_Function(h CGoHandle) *environment.Function {
|
179
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.Function")
|
180
|
+
if p == nil {
|
181
|
+
return nil
|
182
|
+
}
|
183
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Function{})).(*environment.Function)
|
184
|
+
}
|
185
|
+
func handleFromPtr_Ptr_environment_Function(p interface{}) CGoHandle {
|
186
|
+
return CGoHandle(gopyh.Register("*environment.Function", p))
|
187
|
+
}
|
188
|
+
|
189
|
+
// Converters for pointer handles for type: *environment.MemberVariable
|
190
|
+
func ptrFromHandle_Ptr_environment_MemberVariable(h CGoHandle) *environment.MemberVariable {
|
191
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.MemberVariable")
|
192
|
+
if p == nil {
|
193
|
+
return nil
|
194
|
+
}
|
195
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.MemberVariable{})).(*environment.MemberVariable)
|
196
|
+
}
|
197
|
+
func handleFromPtr_Ptr_environment_MemberVariable(p interface{}) CGoHandle {
|
198
|
+
return CGoHandle(gopyh.Register("*environment.MemberVariable", p))
|
199
|
+
}
|
200
|
+
|
201
|
+
// Converters for pointer handles for type: *environment.ObjectInstance
|
202
|
+
func ptrFromHandle_Ptr_environment_ObjectInstance(h CGoHandle) *environment.ObjectInstance {
|
203
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.ObjectInstance")
|
204
|
+
if p == nil {
|
205
|
+
return nil
|
206
|
+
}
|
207
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.ObjectInstance{})).(*environment.ObjectInstance)
|
208
|
+
}
|
209
|
+
func handleFromPtr_Ptr_environment_ObjectInstance(p interface{}) CGoHandle {
|
210
|
+
return CGoHandle(gopyh.Register("*environment.ObjectInstance", p))
|
211
|
+
}
|
212
|
+
|
213
|
+
// Converters for pointer handles for type: *environment.Variable
|
214
|
+
func ptrFromHandle_Ptr_environment_Variable(h CGoHandle) *environment.Variable {
|
215
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*environment.Variable")
|
216
|
+
if p == nil {
|
217
|
+
return nil
|
218
|
+
}
|
219
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Variable{})).(*environment.Variable)
|
220
|
+
}
|
221
|
+
func handleFromPtr_Ptr_environment_Variable(p interface{}) CGoHandle {
|
222
|
+
return CGoHandle(gopyh.Register("*environment.Variable", p))
|
223
|
+
}
|
224
|
+
|
225
|
+
// Converters for pointer handles for type: context.Context
|
226
|
+
func ptrFromHandle_context_Context(h CGoHandle) context.Context {
|
227
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "context.Context")
|
228
|
+
if p == nil {
|
229
|
+
return nil
|
230
|
+
}
|
231
|
+
return p.(context.Context)
|
232
|
+
}
|
233
|
+
func handleFromPtr_context_Context(p interface{}) CGoHandle {
|
234
|
+
return CGoHandle(gopyh.Register("context.Context", p))
|
235
|
+
}
|
236
|
+
|
237
|
+
// Converters for non-pointer handles for type: environment.Class
|
238
|
+
func ptrFromHandle_environment_Class(h CGoHandle) *environment.Class {
|
239
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Class")
|
240
|
+
if p == nil {
|
241
|
+
return nil
|
242
|
+
}
|
243
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Class{})).(*environment.Class)
|
244
|
+
}
|
245
|
+
func handleFromPtr_environment_Class(p interface{}) CGoHandle {
|
246
|
+
return CGoHandle(gopyh.Register("environment.Class", p))
|
247
|
+
}
|
248
|
+
|
249
|
+
// Converters for non-pointer handles for type: environment.Environment
|
250
|
+
func ptrFromHandle_environment_Environment(h CGoHandle) *environment.Environment {
|
251
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Environment")
|
252
|
+
if p == nil {
|
253
|
+
return nil
|
254
|
+
}
|
255
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Environment{})).(*environment.Environment)
|
256
|
+
}
|
257
|
+
func handleFromPtr_environment_Environment(p interface{}) CGoHandle {
|
258
|
+
return CGoHandle(gopyh.Register("environment.Environment", p))
|
259
|
+
}
|
260
|
+
|
261
|
+
// Converters for non-pointer handles for type: environment.Function
|
262
|
+
func ptrFromHandle_environment_Function(h CGoHandle) *environment.Function {
|
263
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Function")
|
264
|
+
if p == nil {
|
265
|
+
return nil
|
266
|
+
}
|
267
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Function{})).(*environment.Function)
|
268
|
+
}
|
269
|
+
func handleFromPtr_environment_Function(p interface{}) CGoHandle {
|
270
|
+
return CGoHandle(gopyh.Register("environment.Function", p))
|
271
|
+
}
|
272
|
+
|
273
|
+
// Converters for non-pointer handles for type: environment.MemberVariable
|
274
|
+
func ptrFromHandle_environment_MemberVariable(h CGoHandle) *environment.MemberVariable {
|
275
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.MemberVariable")
|
276
|
+
if p == nil {
|
277
|
+
return nil
|
278
|
+
}
|
279
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.MemberVariable{})).(*environment.MemberVariable)
|
280
|
+
}
|
281
|
+
func handleFromPtr_environment_MemberVariable(p interface{}) CGoHandle {
|
282
|
+
return CGoHandle(gopyh.Register("environment.MemberVariable", p))
|
283
|
+
}
|
284
|
+
|
285
|
+
// Converters for non-pointer handles for type: environment.ObjectInstance
|
286
|
+
func ptrFromHandle_environment_ObjectInstance(h CGoHandle) *environment.ObjectInstance {
|
287
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.ObjectInstance")
|
288
|
+
if p == nil {
|
289
|
+
return nil
|
290
|
+
}
|
291
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.ObjectInstance{})).(*environment.ObjectInstance)
|
292
|
+
}
|
293
|
+
func handleFromPtr_environment_ObjectInstance(p interface{}) CGoHandle {
|
294
|
+
return CGoHandle(gopyh.Register("environment.ObjectInstance", p))
|
295
|
+
}
|
296
|
+
|
297
|
+
// Converters for non-pointer handles for type: environment.Parameter
|
298
|
+
func ptrFromHandle_environment_Parameter(h CGoHandle) *environment.Parameter {
|
299
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Parameter")
|
300
|
+
if p == nil {
|
301
|
+
return nil
|
302
|
+
}
|
303
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Parameter{})).(*environment.Parameter)
|
304
|
+
}
|
305
|
+
func handleFromPtr_environment_Parameter(p interface{}) CGoHandle {
|
306
|
+
return CGoHandle(gopyh.Register("environment.Parameter", p))
|
307
|
+
}
|
308
|
+
|
309
|
+
// Converters for pointer handles for type: environment.Value
|
310
|
+
func ptrFromHandle_environment_Value(h CGoHandle) environment.Value {
|
311
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Value")
|
312
|
+
if p == nil {
|
313
|
+
return nil
|
314
|
+
}
|
315
|
+
return p.(environment.Value)
|
316
|
+
}
|
317
|
+
func handleFromPtr_environment_Value(p interface{}) CGoHandle {
|
318
|
+
return CGoHandle(gopyh.Register("environment.Value", p))
|
319
|
+
}
|
320
|
+
|
321
|
+
// Converters for non-pointer handles for type: environment.Variable
|
322
|
+
func ptrFromHandle_environment_Variable(h CGoHandle) *environment.Variable {
|
323
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "environment.Variable")
|
324
|
+
if p == nil {
|
325
|
+
return nil
|
326
|
+
}
|
327
|
+
return gopyh.Embed(p, reflect.TypeOf(environment.Variable{})).(*environment.Variable)
|
328
|
+
}
|
329
|
+
func handleFromPtr_environment_Variable(p interface{}) CGoHandle {
|
330
|
+
return CGoHandle(gopyh.Register("environment.Variable", p))
|
331
|
+
}
|
332
|
+
|
333
|
+
// Converters for pointer handles for type: io.Reader
|
334
|
+
func ptrFromHandle_io_Reader(h CGoHandle) io.Reader {
|
335
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "io.Reader")
|
336
|
+
if p == nil {
|
337
|
+
return nil
|
338
|
+
}
|
339
|
+
return p.(io.Reader)
|
340
|
+
}
|
341
|
+
func handleFromPtr_io_Reader(p interface{}) CGoHandle {
|
342
|
+
return CGoHandle(gopyh.Register("io.Reader", p))
|
343
|
+
}
|
344
|
+
|
345
|
+
// Converters for pointer handles for type: io.Writer
|
346
|
+
func ptrFromHandle_io_Writer(h CGoHandle) io.Writer {
|
347
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "io.Writer")
|
348
|
+
if p == nil {
|
349
|
+
return nil
|
350
|
+
}
|
351
|
+
return p.(io.Writer)
|
352
|
+
}
|
353
|
+
func handleFromPtr_io_Writer(p interface{}) CGoHandle {
|
354
|
+
return CGoHandle(gopyh.Register("io.Writer", p))
|
355
|
+
}
|
356
|
+
|
357
|
+
// ---- Package: go ---
|
358
|
+
|
359
|
+
// ---- Types ---
|
360
|
+
|
361
|
+
// Converters for implicit pointer handles for type: []bool
|
362
|
+
func ptrFromHandle_Slice_bool(h CGoHandle) *[]bool {
|
363
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]bool")
|
364
|
+
if p == nil {
|
365
|
+
return nil
|
366
|
+
}
|
367
|
+
return p.(*[]bool)
|
368
|
+
}
|
369
|
+
func deptrFromHandle_Slice_bool(h CGoHandle) []bool {
|
370
|
+
p := ptrFromHandle_Slice_bool(h)
|
371
|
+
if p == nil {
|
372
|
+
return nil
|
373
|
+
}
|
374
|
+
return *p
|
375
|
+
}
|
376
|
+
func handleFromPtr_Slice_bool(p interface{}) CGoHandle {
|
377
|
+
return CGoHandle(gopyh.Register("[]bool", p))
|
378
|
+
}
|
379
|
+
|
380
|
+
// --- wrapping slice: []bool ---
|
381
|
+
//
|
382
|
+
//export Slice_bool_CTor
|
383
|
+
func Slice_bool_CTor() CGoHandle {
|
384
|
+
return CGoHandle(handleFromPtr_Slice_bool(&[]bool{}))
|
385
|
+
}
|
386
|
+
|
387
|
+
//export Slice_bool_len
|
388
|
+
func Slice_bool_len(handle CGoHandle) int {
|
389
|
+
return len(deptrFromHandle_Slice_bool(handle))
|
390
|
+
}
|
391
|
+
|
392
|
+
//export Slice_bool_elem
|
393
|
+
func Slice_bool_elem(handle CGoHandle, _idx int) C.char {
|
394
|
+
s := deptrFromHandle_Slice_bool(handle)
|
395
|
+
return boolGoToPy(s[_idx])
|
396
|
+
}
|
397
|
+
|
398
|
+
//export Slice_bool_subslice
|
399
|
+
func Slice_bool_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
400
|
+
s := deptrFromHandle_Slice_bool(handle)
|
401
|
+
ss := s[_st:_ed]
|
402
|
+
return CGoHandle(handleFromPtr_Slice_bool(&ss))
|
403
|
+
}
|
404
|
+
|
405
|
+
//export Slice_bool_set
|
406
|
+
func Slice_bool_set(handle CGoHandle, _idx int, _vl C.char) {
|
407
|
+
s := deptrFromHandle_Slice_bool(handle)
|
408
|
+
s[_idx] = boolPyToGo(_vl)
|
409
|
+
}
|
410
|
+
|
411
|
+
//export Slice_bool_append
|
412
|
+
func Slice_bool_append(handle CGoHandle, _vl C.char) {
|
413
|
+
s := ptrFromHandle_Slice_bool(handle)
|
414
|
+
*s = append(*s, boolPyToGo(_vl))
|
415
|
+
}
|
416
|
+
|
417
|
+
// Converters for implicit pointer handles for type: []byte
|
418
|
+
func ptrFromHandle_Slice_byte(h CGoHandle) *[]byte {
|
419
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]byte")
|
420
|
+
if p == nil {
|
421
|
+
return nil
|
422
|
+
}
|
423
|
+
return p.(*[]byte)
|
424
|
+
}
|
425
|
+
func deptrFromHandle_Slice_byte(h CGoHandle) []byte {
|
426
|
+
p := ptrFromHandle_Slice_byte(h)
|
427
|
+
if p == nil {
|
428
|
+
return nil
|
429
|
+
}
|
430
|
+
return *p
|
431
|
+
}
|
432
|
+
func handleFromPtr_Slice_byte(p interface{}) CGoHandle {
|
433
|
+
return CGoHandle(gopyh.Register("[]byte", p))
|
434
|
+
}
|
435
|
+
|
436
|
+
// --- wrapping slice: []byte ---
|
437
|
+
//
|
438
|
+
//export Slice_byte_CTor
|
439
|
+
func Slice_byte_CTor() CGoHandle {
|
440
|
+
return CGoHandle(handleFromPtr_Slice_byte(&[]byte{}))
|
441
|
+
}
|
442
|
+
|
443
|
+
//export Slice_byte_len
|
444
|
+
func Slice_byte_len(handle CGoHandle) int {
|
445
|
+
return len(deptrFromHandle_Slice_byte(handle))
|
446
|
+
}
|
447
|
+
|
448
|
+
//export Slice_byte_elem
|
449
|
+
func Slice_byte_elem(handle CGoHandle, _idx int) C.char {
|
450
|
+
s := deptrFromHandle_Slice_byte(handle)
|
451
|
+
return C.char(s[_idx])
|
452
|
+
}
|
453
|
+
|
454
|
+
//export Slice_byte_subslice
|
455
|
+
func Slice_byte_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
456
|
+
s := deptrFromHandle_Slice_byte(handle)
|
457
|
+
ss := s[_st:_ed]
|
458
|
+
return CGoHandle(handleFromPtr_Slice_byte(&ss))
|
459
|
+
}
|
460
|
+
|
461
|
+
//export Slice_byte_set
|
462
|
+
func Slice_byte_set(handle CGoHandle, _idx int, _vl C.char) {
|
463
|
+
s := deptrFromHandle_Slice_byte(handle)
|
464
|
+
s[_idx] = byte(_vl)
|
465
|
+
}
|
466
|
+
|
467
|
+
//export Slice_byte_append
|
468
|
+
func Slice_byte_append(handle CGoHandle, _vl C.char) {
|
469
|
+
s := ptrFromHandle_Slice_byte(handle)
|
470
|
+
*s = append(*s, byte(_vl))
|
471
|
+
}
|
472
|
+
|
473
|
+
//export Slice_byte_from_bytes
|
474
|
+
func Slice_byte_from_bytes(o *C.PyObject) CGoHandle {
|
475
|
+
size := C.PyBytes_Size(o)
|
476
|
+
ptr := unsafe.Pointer(C.PyBytes_AsString(o))
|
477
|
+
data := make([]byte, size)
|
478
|
+
tmp := unsafe.Slice((*byte)(ptr), size)
|
479
|
+
copy(data, tmp)
|
480
|
+
return handleFromPtr_Slice_byte(&data)
|
481
|
+
}
|
482
|
+
|
483
|
+
//export Slice_byte_to_bytes
|
484
|
+
func Slice_byte_to_bytes(handle CGoHandle) *C.PyObject {
|
485
|
+
s := deptrFromHandle_Slice_byte(handle)
|
486
|
+
ptr := unsafe.Pointer(&s[0])
|
487
|
+
size := len(s)
|
488
|
+
return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.longlong(size))
|
489
|
+
}
|
490
|
+
|
491
|
+
// Converters for implicit pointer handles for type: []error
|
492
|
+
func ptrFromHandle_Slice_error(h CGoHandle) *[]error {
|
493
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]error")
|
494
|
+
if p == nil {
|
495
|
+
return nil
|
496
|
+
}
|
497
|
+
return p.(*[]error)
|
498
|
+
}
|
499
|
+
func deptrFromHandle_Slice_error(h CGoHandle) []error {
|
500
|
+
p := ptrFromHandle_Slice_error(h)
|
501
|
+
if p == nil {
|
502
|
+
return nil
|
503
|
+
}
|
504
|
+
return *p
|
505
|
+
}
|
506
|
+
func handleFromPtr_Slice_error(p interface{}) CGoHandle {
|
507
|
+
return CGoHandle(gopyh.Register("[]error", p))
|
508
|
+
}
|
509
|
+
|
510
|
+
// --- wrapping slice: []error ---
|
511
|
+
//
|
512
|
+
//export Slice_error_CTor
|
513
|
+
func Slice_error_CTor() CGoHandle {
|
514
|
+
return CGoHandle(handleFromPtr_Slice_error(&[]error{}))
|
515
|
+
}
|
516
|
+
|
517
|
+
//export Slice_error_len
|
518
|
+
func Slice_error_len(handle CGoHandle) int {
|
519
|
+
return len(deptrFromHandle_Slice_error(handle))
|
520
|
+
}
|
521
|
+
|
522
|
+
//export Slice_error_elem
|
523
|
+
func Slice_error_elem(handle CGoHandle, _idx int) *C.char {
|
524
|
+
s := deptrFromHandle_Slice_error(handle)
|
525
|
+
return errorGoToPy(s[_idx])
|
526
|
+
}
|
527
|
+
|
528
|
+
//export Slice_error_subslice
|
529
|
+
func Slice_error_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
530
|
+
s := deptrFromHandle_Slice_error(handle)
|
531
|
+
ss := s[_st:_ed]
|
532
|
+
return CGoHandle(handleFromPtr_Slice_error(&ss))
|
533
|
+
}
|
534
|
+
|
535
|
+
//export Slice_error_set
|
536
|
+
func Slice_error_set(handle CGoHandle, _idx int, _vl *C.char) {
|
537
|
+
s := deptrFromHandle_Slice_error(handle)
|
538
|
+
s[_idx] = errors.New(C.GoString(_vl))
|
539
|
+
}
|
540
|
+
|
541
|
+
//export Slice_error_append
|
542
|
+
func Slice_error_append(handle CGoHandle, _vl *C.char) {
|
543
|
+
s := ptrFromHandle_Slice_error(handle)
|
544
|
+
*s = append(*s, errors.New(C.GoString(_vl)))
|
545
|
+
}
|
546
|
+
|
547
|
+
// Converters for implicit pointer handles for type: []float32
|
548
|
+
func ptrFromHandle_Slice_float32(h CGoHandle) *[]float32 {
|
549
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]float32")
|
550
|
+
if p == nil {
|
551
|
+
return nil
|
552
|
+
}
|
553
|
+
return p.(*[]float32)
|
554
|
+
}
|
555
|
+
func deptrFromHandle_Slice_float32(h CGoHandle) []float32 {
|
556
|
+
p := ptrFromHandle_Slice_float32(h)
|
557
|
+
if p == nil {
|
558
|
+
return nil
|
559
|
+
}
|
560
|
+
return *p
|
561
|
+
}
|
562
|
+
func handleFromPtr_Slice_float32(p interface{}) CGoHandle {
|
563
|
+
return CGoHandle(gopyh.Register("[]float32", p))
|
564
|
+
}
|
565
|
+
|
566
|
+
// --- wrapping slice: []float32 ---
|
567
|
+
//
|
568
|
+
//export Slice_float32_CTor
|
569
|
+
func Slice_float32_CTor() CGoHandle {
|
570
|
+
return CGoHandle(handleFromPtr_Slice_float32(&[]float32{}))
|
571
|
+
}
|
572
|
+
|
573
|
+
//export Slice_float32_len
|
574
|
+
func Slice_float32_len(handle CGoHandle) int {
|
575
|
+
return len(deptrFromHandle_Slice_float32(handle))
|
576
|
+
}
|
577
|
+
|
578
|
+
//export Slice_float32_elem
|
579
|
+
func Slice_float32_elem(handle CGoHandle, _idx int) C.float {
|
580
|
+
s := deptrFromHandle_Slice_float32(handle)
|
581
|
+
return C.float(s[_idx])
|
582
|
+
}
|
583
|
+
|
584
|
+
//export Slice_float32_subslice
|
585
|
+
func Slice_float32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
586
|
+
s := deptrFromHandle_Slice_float32(handle)
|
587
|
+
ss := s[_st:_ed]
|
588
|
+
return CGoHandle(handleFromPtr_Slice_float32(&ss))
|
589
|
+
}
|
590
|
+
|
591
|
+
//export Slice_float32_set
|
592
|
+
func Slice_float32_set(handle CGoHandle, _idx int, _vl C.float) {
|
593
|
+
s := deptrFromHandle_Slice_float32(handle)
|
594
|
+
s[_idx] = float32(_vl)
|
595
|
+
}
|
596
|
+
|
597
|
+
//export Slice_float32_append
|
598
|
+
func Slice_float32_append(handle CGoHandle, _vl C.float) {
|
599
|
+
s := ptrFromHandle_Slice_float32(handle)
|
600
|
+
*s = append(*s, float32(_vl))
|
601
|
+
}
|
602
|
+
|
603
|
+
// Converters for implicit pointer handles for type: []float64
|
604
|
+
func ptrFromHandle_Slice_float64(h CGoHandle) *[]float64 {
|
605
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]float64")
|
606
|
+
if p == nil {
|
607
|
+
return nil
|
608
|
+
}
|
609
|
+
return p.(*[]float64)
|
610
|
+
}
|
611
|
+
func deptrFromHandle_Slice_float64(h CGoHandle) []float64 {
|
612
|
+
p := ptrFromHandle_Slice_float64(h)
|
613
|
+
if p == nil {
|
614
|
+
return nil
|
615
|
+
}
|
616
|
+
return *p
|
617
|
+
}
|
618
|
+
func handleFromPtr_Slice_float64(p interface{}) CGoHandle {
|
619
|
+
return CGoHandle(gopyh.Register("[]float64", p))
|
620
|
+
}
|
621
|
+
|
622
|
+
// --- wrapping slice: []float64 ---
|
623
|
+
//
|
624
|
+
//export Slice_float64_CTor
|
625
|
+
func Slice_float64_CTor() CGoHandle {
|
626
|
+
return CGoHandle(handleFromPtr_Slice_float64(&[]float64{}))
|
627
|
+
}
|
628
|
+
|
629
|
+
//export Slice_float64_len
|
630
|
+
func Slice_float64_len(handle CGoHandle) int {
|
631
|
+
return len(deptrFromHandle_Slice_float64(handle))
|
632
|
+
}
|
633
|
+
|
634
|
+
//export Slice_float64_elem
|
635
|
+
func Slice_float64_elem(handle CGoHandle, _idx int) C.double {
|
636
|
+
s := deptrFromHandle_Slice_float64(handle)
|
637
|
+
return C.double(s[_idx])
|
638
|
+
}
|
639
|
+
|
640
|
+
//export Slice_float64_subslice
|
641
|
+
func Slice_float64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
642
|
+
s := deptrFromHandle_Slice_float64(handle)
|
643
|
+
ss := s[_st:_ed]
|
644
|
+
return CGoHandle(handleFromPtr_Slice_float64(&ss))
|
645
|
+
}
|
646
|
+
|
647
|
+
//export Slice_float64_set
|
648
|
+
func Slice_float64_set(handle CGoHandle, _idx int, _vl C.double) {
|
649
|
+
s := deptrFromHandle_Slice_float64(handle)
|
650
|
+
s[_idx] = float64(_vl)
|
651
|
+
}
|
652
|
+
|
653
|
+
//export Slice_float64_append
|
654
|
+
func Slice_float64_append(handle CGoHandle, _vl C.double) {
|
655
|
+
s := ptrFromHandle_Slice_float64(handle)
|
656
|
+
*s = append(*s, float64(_vl))
|
657
|
+
}
|
658
|
+
|
659
|
+
// Converters for implicit pointer handles for type: []int
|
660
|
+
func ptrFromHandle_Slice_int(h CGoHandle) *[]int {
|
661
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int")
|
662
|
+
if p == nil {
|
663
|
+
return nil
|
664
|
+
}
|
665
|
+
return p.(*[]int)
|
666
|
+
}
|
667
|
+
func deptrFromHandle_Slice_int(h CGoHandle) []int {
|
668
|
+
p := ptrFromHandle_Slice_int(h)
|
669
|
+
if p == nil {
|
670
|
+
return nil
|
671
|
+
}
|
672
|
+
return *p
|
673
|
+
}
|
674
|
+
func handleFromPtr_Slice_int(p interface{}) CGoHandle {
|
675
|
+
return CGoHandle(gopyh.Register("[]int", p))
|
676
|
+
}
|
677
|
+
|
678
|
+
// --- wrapping slice: []int ---
|
679
|
+
//
|
680
|
+
//export Slice_int_CTor
|
681
|
+
func Slice_int_CTor() CGoHandle {
|
682
|
+
return CGoHandle(handleFromPtr_Slice_int(&[]int{}))
|
683
|
+
}
|
684
|
+
|
685
|
+
//export Slice_int_len
|
686
|
+
func Slice_int_len(handle CGoHandle) int {
|
687
|
+
return len(deptrFromHandle_Slice_int(handle))
|
688
|
+
}
|
689
|
+
|
690
|
+
//export Slice_int_elem
|
691
|
+
func Slice_int_elem(handle CGoHandle, _idx int) C.longlong {
|
692
|
+
s := deptrFromHandle_Slice_int(handle)
|
693
|
+
return C.longlong(s[_idx])
|
694
|
+
}
|
695
|
+
|
696
|
+
//export Slice_int_subslice
|
697
|
+
func Slice_int_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
698
|
+
s := deptrFromHandle_Slice_int(handle)
|
699
|
+
ss := s[_st:_ed]
|
700
|
+
return CGoHandle(handleFromPtr_Slice_int(&ss))
|
701
|
+
}
|
702
|
+
|
703
|
+
//export Slice_int_set
|
704
|
+
func Slice_int_set(handle CGoHandle, _idx int, _vl C.longlong) {
|
705
|
+
s := deptrFromHandle_Slice_int(handle)
|
706
|
+
s[_idx] = int(_vl)
|
707
|
+
}
|
708
|
+
|
709
|
+
//export Slice_int_append
|
710
|
+
func Slice_int_append(handle CGoHandle, _vl C.longlong) {
|
711
|
+
s := ptrFromHandle_Slice_int(handle)
|
712
|
+
*s = append(*s, int(_vl))
|
713
|
+
}
|
714
|
+
|
715
|
+
// Converters for implicit pointer handles for type: []int16
|
716
|
+
func ptrFromHandle_Slice_int16(h CGoHandle) *[]int16 {
|
717
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int16")
|
718
|
+
if p == nil {
|
719
|
+
return nil
|
720
|
+
}
|
721
|
+
return p.(*[]int16)
|
722
|
+
}
|
723
|
+
func deptrFromHandle_Slice_int16(h CGoHandle) []int16 {
|
724
|
+
p := ptrFromHandle_Slice_int16(h)
|
725
|
+
if p == nil {
|
726
|
+
return nil
|
727
|
+
}
|
728
|
+
return *p
|
729
|
+
}
|
730
|
+
func handleFromPtr_Slice_int16(p interface{}) CGoHandle {
|
731
|
+
return CGoHandle(gopyh.Register("[]int16", p))
|
732
|
+
}
|
733
|
+
|
734
|
+
// --- wrapping slice: []int16 ---
|
735
|
+
//
|
736
|
+
//export Slice_int16_CTor
|
737
|
+
func Slice_int16_CTor() CGoHandle {
|
738
|
+
return CGoHandle(handleFromPtr_Slice_int16(&[]int16{}))
|
739
|
+
}
|
740
|
+
|
741
|
+
//export Slice_int16_len
|
742
|
+
func Slice_int16_len(handle CGoHandle) int {
|
743
|
+
return len(deptrFromHandle_Slice_int16(handle))
|
744
|
+
}
|
745
|
+
|
746
|
+
//export Slice_int16_elem
|
747
|
+
func Slice_int16_elem(handle CGoHandle, _idx int) C.short {
|
748
|
+
s := deptrFromHandle_Slice_int16(handle)
|
749
|
+
return C.short(s[_idx])
|
750
|
+
}
|
751
|
+
|
752
|
+
//export Slice_int16_subslice
|
753
|
+
func Slice_int16_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
754
|
+
s := deptrFromHandle_Slice_int16(handle)
|
755
|
+
ss := s[_st:_ed]
|
756
|
+
return CGoHandle(handleFromPtr_Slice_int16(&ss))
|
757
|
+
}
|
758
|
+
|
759
|
+
//export Slice_int16_set
|
760
|
+
func Slice_int16_set(handle CGoHandle, _idx int, _vl C.short) {
|
761
|
+
s := deptrFromHandle_Slice_int16(handle)
|
762
|
+
s[_idx] = int16(_vl)
|
763
|
+
}
|
764
|
+
|
765
|
+
//export Slice_int16_append
|
766
|
+
func Slice_int16_append(handle CGoHandle, _vl C.short) {
|
767
|
+
s := ptrFromHandle_Slice_int16(handle)
|
768
|
+
*s = append(*s, int16(_vl))
|
769
|
+
}
|
770
|
+
|
771
|
+
// Converters for implicit pointer handles for type: []int32
|
772
|
+
func ptrFromHandle_Slice_int32(h CGoHandle) *[]int32 {
|
773
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int32")
|
774
|
+
if p == nil {
|
775
|
+
return nil
|
776
|
+
}
|
777
|
+
return p.(*[]int32)
|
778
|
+
}
|
779
|
+
func deptrFromHandle_Slice_int32(h CGoHandle) []int32 {
|
780
|
+
p := ptrFromHandle_Slice_int32(h)
|
781
|
+
if p == nil {
|
782
|
+
return nil
|
783
|
+
}
|
784
|
+
return *p
|
785
|
+
}
|
786
|
+
func handleFromPtr_Slice_int32(p interface{}) CGoHandle {
|
787
|
+
return CGoHandle(gopyh.Register("[]int32", p))
|
788
|
+
}
|
789
|
+
|
790
|
+
// --- wrapping slice: []int32 ---
|
791
|
+
//
|
792
|
+
//export Slice_int32_CTor
|
793
|
+
func Slice_int32_CTor() CGoHandle {
|
794
|
+
return CGoHandle(handleFromPtr_Slice_int32(&[]int32{}))
|
795
|
+
}
|
796
|
+
|
797
|
+
//export Slice_int32_len
|
798
|
+
func Slice_int32_len(handle CGoHandle) int {
|
799
|
+
return len(deptrFromHandle_Slice_int32(handle))
|
800
|
+
}
|
801
|
+
|
802
|
+
//export Slice_int32_elem
|
803
|
+
func Slice_int32_elem(handle CGoHandle, _idx int) C.long {
|
804
|
+
s := deptrFromHandle_Slice_int32(handle)
|
805
|
+
return C.long(s[_idx])
|
806
|
+
}
|
807
|
+
|
808
|
+
//export Slice_int32_subslice
|
809
|
+
func Slice_int32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
810
|
+
s := deptrFromHandle_Slice_int32(handle)
|
811
|
+
ss := s[_st:_ed]
|
812
|
+
return CGoHandle(handleFromPtr_Slice_int32(&ss))
|
813
|
+
}
|
814
|
+
|
815
|
+
//export Slice_int32_set
|
816
|
+
func Slice_int32_set(handle CGoHandle, _idx int, _vl C.long) {
|
817
|
+
s := deptrFromHandle_Slice_int32(handle)
|
818
|
+
s[_idx] = int32(_vl)
|
819
|
+
}
|
820
|
+
|
821
|
+
//export Slice_int32_append
|
822
|
+
func Slice_int32_append(handle CGoHandle, _vl C.long) {
|
823
|
+
s := ptrFromHandle_Slice_int32(handle)
|
824
|
+
*s = append(*s, int32(_vl))
|
825
|
+
}
|
826
|
+
|
827
|
+
// Converters for implicit pointer handles for type: []int64
|
828
|
+
func ptrFromHandle_Slice_int64(h CGoHandle) *[]int64 {
|
829
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int64")
|
830
|
+
if p == nil {
|
831
|
+
return nil
|
832
|
+
}
|
833
|
+
return p.(*[]int64)
|
834
|
+
}
|
835
|
+
func deptrFromHandle_Slice_int64(h CGoHandle) []int64 {
|
836
|
+
p := ptrFromHandle_Slice_int64(h)
|
837
|
+
if p == nil {
|
838
|
+
return nil
|
839
|
+
}
|
840
|
+
return *p
|
841
|
+
}
|
842
|
+
func handleFromPtr_Slice_int64(p interface{}) CGoHandle {
|
843
|
+
return CGoHandle(gopyh.Register("[]int64", p))
|
844
|
+
}
|
845
|
+
|
846
|
+
// --- wrapping slice: []int64 ---
|
847
|
+
//
|
848
|
+
//export Slice_int64_CTor
|
849
|
+
func Slice_int64_CTor() CGoHandle {
|
850
|
+
return CGoHandle(handleFromPtr_Slice_int64(&[]int64{}))
|
851
|
+
}
|
852
|
+
|
853
|
+
//export Slice_int64_len
|
854
|
+
func Slice_int64_len(handle CGoHandle) int {
|
855
|
+
return len(deptrFromHandle_Slice_int64(handle))
|
856
|
+
}
|
857
|
+
|
858
|
+
//export Slice_int64_elem
|
859
|
+
func Slice_int64_elem(handle CGoHandle, _idx int) C.longlong {
|
860
|
+
s := deptrFromHandle_Slice_int64(handle)
|
861
|
+
return C.longlong(s[_idx])
|
862
|
+
}
|
863
|
+
|
864
|
+
//export Slice_int64_subslice
|
865
|
+
func Slice_int64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
866
|
+
s := deptrFromHandle_Slice_int64(handle)
|
867
|
+
ss := s[_st:_ed]
|
868
|
+
return CGoHandle(handleFromPtr_Slice_int64(&ss))
|
869
|
+
}
|
870
|
+
|
871
|
+
//export Slice_int64_set
|
872
|
+
func Slice_int64_set(handle CGoHandle, _idx int, _vl C.longlong) {
|
873
|
+
s := deptrFromHandle_Slice_int64(handle)
|
874
|
+
s[_idx] = int64(_vl)
|
875
|
+
}
|
876
|
+
|
877
|
+
//export Slice_int64_append
|
878
|
+
func Slice_int64_append(handle CGoHandle, _vl C.longlong) {
|
879
|
+
s := ptrFromHandle_Slice_int64(handle)
|
880
|
+
*s = append(*s, int64(_vl))
|
881
|
+
}
|
882
|
+
|
883
|
+
// Converters for implicit pointer handles for type: []int8
|
884
|
+
func ptrFromHandle_Slice_int8(h CGoHandle) *[]int8 {
|
885
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int8")
|
886
|
+
if p == nil {
|
887
|
+
return nil
|
888
|
+
}
|
889
|
+
return p.(*[]int8)
|
890
|
+
}
|
891
|
+
func deptrFromHandle_Slice_int8(h CGoHandle) []int8 {
|
892
|
+
p := ptrFromHandle_Slice_int8(h)
|
893
|
+
if p == nil {
|
894
|
+
return nil
|
895
|
+
}
|
896
|
+
return *p
|
897
|
+
}
|
898
|
+
func handleFromPtr_Slice_int8(p interface{}) CGoHandle {
|
899
|
+
return CGoHandle(gopyh.Register("[]int8", p))
|
900
|
+
}
|
901
|
+
|
902
|
+
// --- wrapping slice: []int8 ---
|
903
|
+
//
|
904
|
+
//export Slice_int8_CTor
|
905
|
+
func Slice_int8_CTor() CGoHandle {
|
906
|
+
return CGoHandle(handleFromPtr_Slice_int8(&[]int8{}))
|
907
|
+
}
|
908
|
+
|
909
|
+
//export Slice_int8_len
|
910
|
+
func Slice_int8_len(handle CGoHandle) int {
|
911
|
+
return len(deptrFromHandle_Slice_int8(handle))
|
912
|
+
}
|
913
|
+
|
914
|
+
//export Slice_int8_elem
|
915
|
+
func Slice_int8_elem(handle CGoHandle, _idx int) C.char {
|
916
|
+
s := deptrFromHandle_Slice_int8(handle)
|
917
|
+
return C.char(s[_idx])
|
918
|
+
}
|
919
|
+
|
920
|
+
//export Slice_int8_subslice
|
921
|
+
func Slice_int8_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
922
|
+
s := deptrFromHandle_Slice_int8(handle)
|
923
|
+
ss := s[_st:_ed]
|
924
|
+
return CGoHandle(handleFromPtr_Slice_int8(&ss))
|
925
|
+
}
|
926
|
+
|
927
|
+
//export Slice_int8_set
|
928
|
+
func Slice_int8_set(handle CGoHandle, _idx int, _vl C.char) {
|
929
|
+
s := deptrFromHandle_Slice_int8(handle)
|
930
|
+
s[_idx] = int8(_vl)
|
931
|
+
}
|
932
|
+
|
933
|
+
//export Slice_int8_append
|
934
|
+
func Slice_int8_append(handle CGoHandle, _vl C.char) {
|
935
|
+
s := ptrFromHandle_Slice_int8(handle)
|
936
|
+
*s = append(*s, int8(_vl))
|
937
|
+
}
|
938
|
+
|
939
|
+
// Converters for implicit pointer handles for type: []rune
|
940
|
+
func ptrFromHandle_Slice_rune(h CGoHandle) *[]rune {
|
941
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]rune")
|
942
|
+
if p == nil {
|
943
|
+
return nil
|
944
|
+
}
|
945
|
+
return p.(*[]rune)
|
946
|
+
}
|
947
|
+
func deptrFromHandle_Slice_rune(h CGoHandle) []rune {
|
948
|
+
p := ptrFromHandle_Slice_rune(h)
|
949
|
+
if p == nil {
|
950
|
+
return nil
|
951
|
+
}
|
952
|
+
return *p
|
953
|
+
}
|
954
|
+
func handleFromPtr_Slice_rune(p interface{}) CGoHandle {
|
955
|
+
return CGoHandle(gopyh.Register("[]rune", p))
|
956
|
+
}
|
957
|
+
|
958
|
+
// --- wrapping slice: []rune ---
|
959
|
+
//
|
960
|
+
//export Slice_rune_CTor
|
961
|
+
func Slice_rune_CTor() CGoHandle {
|
962
|
+
return CGoHandle(handleFromPtr_Slice_rune(&[]rune{}))
|
963
|
+
}
|
964
|
+
|
965
|
+
//export Slice_rune_len
|
966
|
+
func Slice_rune_len(handle CGoHandle) int {
|
967
|
+
return len(deptrFromHandle_Slice_rune(handle))
|
968
|
+
}
|
969
|
+
|
970
|
+
//export Slice_rune_elem
|
971
|
+
func Slice_rune_elem(handle CGoHandle, _idx int) C.long {
|
972
|
+
s := deptrFromHandle_Slice_rune(handle)
|
973
|
+
return C.long(s[_idx])
|
974
|
+
}
|
975
|
+
|
976
|
+
//export Slice_rune_subslice
|
977
|
+
func Slice_rune_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
978
|
+
s := deptrFromHandle_Slice_rune(handle)
|
979
|
+
ss := s[_st:_ed]
|
980
|
+
return CGoHandle(handleFromPtr_Slice_rune(&ss))
|
981
|
+
}
|
982
|
+
|
983
|
+
//export Slice_rune_set
|
984
|
+
func Slice_rune_set(handle CGoHandle, _idx int, _vl C.long) {
|
985
|
+
s := deptrFromHandle_Slice_rune(handle)
|
986
|
+
s[_idx] = rune(_vl)
|
987
|
+
}
|
988
|
+
|
989
|
+
//export Slice_rune_append
|
990
|
+
func Slice_rune_append(handle CGoHandle, _vl C.long) {
|
991
|
+
s := ptrFromHandle_Slice_rune(handle)
|
992
|
+
*s = append(*s, rune(_vl))
|
993
|
+
}
|
994
|
+
|
995
|
+
// Converters for implicit pointer handles for type: []string
|
996
|
+
func ptrFromHandle_Slice_string(h CGoHandle) *[]string {
|
997
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]string")
|
998
|
+
if p == nil {
|
999
|
+
return nil
|
1000
|
+
}
|
1001
|
+
return p.(*[]string)
|
1002
|
+
}
|
1003
|
+
func deptrFromHandle_Slice_string(h CGoHandle) []string {
|
1004
|
+
p := ptrFromHandle_Slice_string(h)
|
1005
|
+
if p == nil {
|
1006
|
+
return nil
|
1007
|
+
}
|
1008
|
+
return *p
|
1009
|
+
}
|
1010
|
+
func handleFromPtr_Slice_string(p interface{}) CGoHandle {
|
1011
|
+
return CGoHandle(gopyh.Register("[]string", p))
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
// --- wrapping slice: []string ---
|
1015
|
+
//
|
1016
|
+
//export Slice_string_CTor
|
1017
|
+
func Slice_string_CTor() CGoHandle {
|
1018
|
+
return CGoHandle(handleFromPtr_Slice_string(&[]string{}))
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
//export Slice_string_len
|
1022
|
+
func Slice_string_len(handle CGoHandle) int {
|
1023
|
+
return len(deptrFromHandle_Slice_string(handle))
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
//export Slice_string_elem
|
1027
|
+
func Slice_string_elem(handle CGoHandle, _idx int) *C.char {
|
1028
|
+
s := deptrFromHandle_Slice_string(handle)
|
1029
|
+
return C.CString(s[_idx])
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
//export Slice_string_subslice
|
1033
|
+
func Slice_string_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1034
|
+
s := deptrFromHandle_Slice_string(handle)
|
1035
|
+
ss := s[_st:_ed]
|
1036
|
+
return CGoHandle(handleFromPtr_Slice_string(&ss))
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
//export Slice_string_set
|
1040
|
+
func Slice_string_set(handle CGoHandle, _idx int, _vl *C.char) {
|
1041
|
+
s := deptrFromHandle_Slice_string(handle)
|
1042
|
+
s[_idx] = C.GoString(_vl)
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
//export Slice_string_append
|
1046
|
+
func Slice_string_append(handle CGoHandle, _vl *C.char) {
|
1047
|
+
s := ptrFromHandle_Slice_string(handle)
|
1048
|
+
*s = append(*s, C.GoString(_vl))
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
// Converters for implicit pointer handles for type: []uint
|
1052
|
+
func ptrFromHandle_Slice_uint(h CGoHandle) *[]uint {
|
1053
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint")
|
1054
|
+
if p == nil {
|
1055
|
+
return nil
|
1056
|
+
}
|
1057
|
+
return p.(*[]uint)
|
1058
|
+
}
|
1059
|
+
func deptrFromHandle_Slice_uint(h CGoHandle) []uint {
|
1060
|
+
p := ptrFromHandle_Slice_uint(h)
|
1061
|
+
if p == nil {
|
1062
|
+
return nil
|
1063
|
+
}
|
1064
|
+
return *p
|
1065
|
+
}
|
1066
|
+
func handleFromPtr_Slice_uint(p interface{}) CGoHandle {
|
1067
|
+
return CGoHandle(gopyh.Register("[]uint", p))
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
// --- wrapping slice: []uint ---
|
1071
|
+
//
|
1072
|
+
//export Slice_uint_CTor
|
1073
|
+
func Slice_uint_CTor() CGoHandle {
|
1074
|
+
return CGoHandle(handleFromPtr_Slice_uint(&[]uint{}))
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
//export Slice_uint_len
|
1078
|
+
func Slice_uint_len(handle CGoHandle) int {
|
1079
|
+
return len(deptrFromHandle_Slice_uint(handle))
|
1080
|
+
}
|
1081
|
+
|
1082
|
+
//export Slice_uint_elem
|
1083
|
+
func Slice_uint_elem(handle CGoHandle, _idx int) C.ulonglong {
|
1084
|
+
s := deptrFromHandle_Slice_uint(handle)
|
1085
|
+
return C.ulonglong(s[_idx])
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
//export Slice_uint_subslice
|
1089
|
+
func Slice_uint_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1090
|
+
s := deptrFromHandle_Slice_uint(handle)
|
1091
|
+
ss := s[_st:_ed]
|
1092
|
+
return CGoHandle(handleFromPtr_Slice_uint(&ss))
|
1093
|
+
}
|
1094
|
+
|
1095
|
+
//export Slice_uint_set
|
1096
|
+
func Slice_uint_set(handle CGoHandle, _idx int, _vl C.ulonglong) {
|
1097
|
+
s := deptrFromHandle_Slice_uint(handle)
|
1098
|
+
s[_idx] = uint(_vl)
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
//export Slice_uint_append
|
1102
|
+
func Slice_uint_append(handle CGoHandle, _vl C.ulonglong) {
|
1103
|
+
s := ptrFromHandle_Slice_uint(handle)
|
1104
|
+
*s = append(*s, uint(_vl))
|
1105
|
+
}
|
1106
|
+
|
1107
|
+
// Converters for implicit pointer handles for type: []uint16
|
1108
|
+
func ptrFromHandle_Slice_uint16(h CGoHandle) *[]uint16 {
|
1109
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint16")
|
1110
|
+
if p == nil {
|
1111
|
+
return nil
|
1112
|
+
}
|
1113
|
+
return p.(*[]uint16)
|
1114
|
+
}
|
1115
|
+
func deptrFromHandle_Slice_uint16(h CGoHandle) []uint16 {
|
1116
|
+
p := ptrFromHandle_Slice_uint16(h)
|
1117
|
+
if p == nil {
|
1118
|
+
return nil
|
1119
|
+
}
|
1120
|
+
return *p
|
1121
|
+
}
|
1122
|
+
func handleFromPtr_Slice_uint16(p interface{}) CGoHandle {
|
1123
|
+
return CGoHandle(gopyh.Register("[]uint16", p))
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
// --- wrapping slice: []uint16 ---
|
1127
|
+
//
|
1128
|
+
//export Slice_uint16_CTor
|
1129
|
+
func Slice_uint16_CTor() CGoHandle {
|
1130
|
+
return CGoHandle(handleFromPtr_Slice_uint16(&[]uint16{}))
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
//export Slice_uint16_len
|
1134
|
+
func Slice_uint16_len(handle CGoHandle) int {
|
1135
|
+
return len(deptrFromHandle_Slice_uint16(handle))
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
//export Slice_uint16_elem
|
1139
|
+
func Slice_uint16_elem(handle CGoHandle, _idx int) C.ushort {
|
1140
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
1141
|
+
return C.ushort(s[_idx])
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
//export Slice_uint16_subslice
|
1145
|
+
func Slice_uint16_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1146
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
1147
|
+
ss := s[_st:_ed]
|
1148
|
+
return CGoHandle(handleFromPtr_Slice_uint16(&ss))
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
//export Slice_uint16_set
|
1152
|
+
func Slice_uint16_set(handle CGoHandle, _idx int, _vl C.ushort) {
|
1153
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
1154
|
+
s[_idx] = uint16(_vl)
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
//export Slice_uint16_append
|
1158
|
+
func Slice_uint16_append(handle CGoHandle, _vl C.ushort) {
|
1159
|
+
s := ptrFromHandle_Slice_uint16(handle)
|
1160
|
+
*s = append(*s, uint16(_vl))
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
// Converters for implicit pointer handles for type: []uint32
|
1164
|
+
func ptrFromHandle_Slice_uint32(h CGoHandle) *[]uint32 {
|
1165
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint32")
|
1166
|
+
if p == nil {
|
1167
|
+
return nil
|
1168
|
+
}
|
1169
|
+
return p.(*[]uint32)
|
1170
|
+
}
|
1171
|
+
func deptrFromHandle_Slice_uint32(h CGoHandle) []uint32 {
|
1172
|
+
p := ptrFromHandle_Slice_uint32(h)
|
1173
|
+
if p == nil {
|
1174
|
+
return nil
|
1175
|
+
}
|
1176
|
+
return *p
|
1177
|
+
}
|
1178
|
+
func handleFromPtr_Slice_uint32(p interface{}) CGoHandle {
|
1179
|
+
return CGoHandle(gopyh.Register("[]uint32", p))
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
// --- wrapping slice: []uint32 ---
|
1183
|
+
//
|
1184
|
+
//export Slice_uint32_CTor
|
1185
|
+
func Slice_uint32_CTor() CGoHandle {
|
1186
|
+
return CGoHandle(handleFromPtr_Slice_uint32(&[]uint32{}))
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
//export Slice_uint32_len
|
1190
|
+
func Slice_uint32_len(handle CGoHandle) int {
|
1191
|
+
return len(deptrFromHandle_Slice_uint32(handle))
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
//export Slice_uint32_elem
|
1195
|
+
func Slice_uint32_elem(handle CGoHandle, _idx int) C.ulong {
|
1196
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
1197
|
+
return C.ulong(s[_idx])
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
//export Slice_uint32_subslice
|
1201
|
+
func Slice_uint32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1202
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
1203
|
+
ss := s[_st:_ed]
|
1204
|
+
return CGoHandle(handleFromPtr_Slice_uint32(&ss))
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
//export Slice_uint32_set
|
1208
|
+
func Slice_uint32_set(handle CGoHandle, _idx int, _vl C.ulong) {
|
1209
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
1210
|
+
s[_idx] = uint32(_vl)
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
//export Slice_uint32_append
|
1214
|
+
func Slice_uint32_append(handle CGoHandle, _vl C.ulong) {
|
1215
|
+
s := ptrFromHandle_Slice_uint32(handle)
|
1216
|
+
*s = append(*s, uint32(_vl))
|
1217
|
+
}
|
1218
|
+
|
1219
|
+
// Converters for implicit pointer handles for type: []uint64
|
1220
|
+
func ptrFromHandle_Slice_uint64(h CGoHandle) *[]uint64 {
|
1221
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint64")
|
1222
|
+
if p == nil {
|
1223
|
+
return nil
|
1224
|
+
}
|
1225
|
+
return p.(*[]uint64)
|
1226
|
+
}
|
1227
|
+
func deptrFromHandle_Slice_uint64(h CGoHandle) []uint64 {
|
1228
|
+
p := ptrFromHandle_Slice_uint64(h)
|
1229
|
+
if p == nil {
|
1230
|
+
return nil
|
1231
|
+
}
|
1232
|
+
return *p
|
1233
|
+
}
|
1234
|
+
func handleFromPtr_Slice_uint64(p interface{}) CGoHandle {
|
1235
|
+
return CGoHandle(gopyh.Register("[]uint64", p))
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
// --- wrapping slice: []uint64 ---
|
1239
|
+
//
|
1240
|
+
//export Slice_uint64_CTor
|
1241
|
+
func Slice_uint64_CTor() CGoHandle {
|
1242
|
+
return CGoHandle(handleFromPtr_Slice_uint64(&[]uint64{}))
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
//export Slice_uint64_len
|
1246
|
+
func Slice_uint64_len(handle CGoHandle) int {
|
1247
|
+
return len(deptrFromHandle_Slice_uint64(handle))
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
//export Slice_uint64_elem
|
1251
|
+
func Slice_uint64_elem(handle CGoHandle, _idx int) C.ulonglong {
|
1252
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
1253
|
+
return C.ulonglong(s[_idx])
|
1254
|
+
}
|
1255
|
+
|
1256
|
+
//export Slice_uint64_subslice
|
1257
|
+
func Slice_uint64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1258
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
1259
|
+
ss := s[_st:_ed]
|
1260
|
+
return CGoHandle(handleFromPtr_Slice_uint64(&ss))
|
1261
|
+
}
|
1262
|
+
|
1263
|
+
//export Slice_uint64_set
|
1264
|
+
func Slice_uint64_set(handle CGoHandle, _idx int, _vl C.ulonglong) {
|
1265
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
1266
|
+
s[_idx] = uint64(_vl)
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
//export Slice_uint64_append
|
1270
|
+
func Slice_uint64_append(handle CGoHandle, _vl C.ulonglong) {
|
1271
|
+
s := ptrFromHandle_Slice_uint64(handle)
|
1272
|
+
*s = append(*s, uint64(_vl))
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
// Converters for implicit pointer handles for type: []uint8
|
1276
|
+
func ptrFromHandle_Slice_uint8(h CGoHandle) *[]uint8 {
|
1277
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint8")
|
1278
|
+
if p == nil {
|
1279
|
+
return nil
|
1280
|
+
}
|
1281
|
+
return p.(*[]uint8)
|
1282
|
+
}
|
1283
|
+
func deptrFromHandle_Slice_uint8(h CGoHandle) []uint8 {
|
1284
|
+
p := ptrFromHandle_Slice_uint8(h)
|
1285
|
+
if p == nil {
|
1286
|
+
return nil
|
1287
|
+
}
|
1288
|
+
return *p
|
1289
|
+
}
|
1290
|
+
func handleFromPtr_Slice_uint8(p interface{}) CGoHandle {
|
1291
|
+
return CGoHandle(gopyh.Register("[]uint8", p))
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
// --- wrapping slice: []uint8 ---
|
1295
|
+
//
|
1296
|
+
//export Slice_uint8_CTor
|
1297
|
+
func Slice_uint8_CTor() CGoHandle {
|
1298
|
+
return CGoHandle(handleFromPtr_Slice_uint8(&[]uint8{}))
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
//export Slice_uint8_len
|
1302
|
+
func Slice_uint8_len(handle CGoHandle) int {
|
1303
|
+
return len(deptrFromHandle_Slice_uint8(handle))
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
//export Slice_uint8_elem
|
1307
|
+
func Slice_uint8_elem(handle CGoHandle, _idx int) C.uchar {
|
1308
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
1309
|
+
return C.uchar(s[_idx])
|
1310
|
+
}
|
1311
|
+
|
1312
|
+
//export Slice_uint8_subslice
|
1313
|
+
func Slice_uint8_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1314
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
1315
|
+
ss := s[_st:_ed]
|
1316
|
+
return CGoHandle(handleFromPtr_Slice_uint8(&ss))
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
//export Slice_uint8_set
|
1320
|
+
func Slice_uint8_set(handle CGoHandle, _idx int, _vl C.uchar) {
|
1321
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
1322
|
+
s[_idx] = uint8(_vl)
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
//export Slice_uint8_append
|
1326
|
+
func Slice_uint8_append(handle CGoHandle, _vl C.uchar) {
|
1327
|
+
s := ptrFromHandle_Slice_uint8(handle)
|
1328
|
+
*s = append(*s, uint8(_vl))
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
// ---- Package: api ---
|
1332
|
+
|
1333
|
+
// ---- Types ---
|
1334
|
+
|
1335
|
+
// Converters for pointer handles for type: *api.ClassDefinition
|
1336
|
+
func ptrFromHandle_Ptr_api_ClassDefinition(h CGoHandle) *api.ClassDefinition {
|
1337
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.ClassDefinition")
|
1338
|
+
if p == nil {
|
1339
|
+
return nil
|
1340
|
+
}
|
1341
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassDefinition{})).(*api.ClassDefinition)
|
1342
|
+
}
|
1343
|
+
func handleFromPtr_Ptr_api_ClassDefinition(p interface{}) CGoHandle {
|
1344
|
+
return CGoHandle(gopyh.Register("*api.ClassDefinition", p))
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
// Converters for pointer handles for type: *api.ClassMethod
|
1348
|
+
func ptrFromHandle_Ptr_api_ClassMethod(h CGoHandle) *api.ClassMethod {
|
1349
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.ClassMethod")
|
1350
|
+
if p == nil {
|
1351
|
+
return nil
|
1352
|
+
}
|
1353
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassMethod{})).(*api.ClassMethod)
|
1354
|
+
}
|
1355
|
+
func handleFromPtr_Ptr_api_ClassMethod(p interface{}) CGoHandle {
|
1356
|
+
return CGoHandle(gopyh.Register("*api.ClassMethod", p))
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
// Converters for pointer handles for type: *api.ClassVariable
|
1360
|
+
func ptrFromHandle_Ptr_api_ClassVariable(h CGoHandle) *api.ClassVariable {
|
1361
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.ClassVariable")
|
1362
|
+
if p == nil {
|
1363
|
+
return nil
|
1364
|
+
}
|
1365
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassVariable{})).(*api.ClassVariable)
|
1366
|
+
}
|
1367
|
+
func handleFromPtr_Ptr_api_ClassVariable(p interface{}) CGoHandle {
|
1368
|
+
return CGoHandle(gopyh.Register("*api.ClassVariable", p))
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
// Converters for pointer handles for type: *api.ExecutionResult
|
1372
|
+
func ptrFromHandle_Ptr_api_ExecutionResult(h CGoHandle) *api.ExecutionResult {
|
1373
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.ExecutionResult")
|
1374
|
+
if p == nil {
|
1375
|
+
return nil
|
1376
|
+
}
|
1377
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ExecutionResult{})).(*api.ExecutionResult)
|
1378
|
+
}
|
1379
|
+
func handleFromPtr_Ptr_api_ExecutionResult(p interface{}) CGoHandle {
|
1380
|
+
return CGoHandle(gopyh.Register("*api.ExecutionResult", p))
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
// Converters for pointer handles for type: *api.GoValue
|
1384
|
+
func ptrFromHandle_Ptr_api_GoValue(h CGoHandle) *api.GoValue {
|
1385
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.GoValue")
|
1386
|
+
if p == nil {
|
1387
|
+
return nil
|
1388
|
+
}
|
1389
|
+
return gopyh.Embed(p, reflect.TypeOf(api.GoValue{})).(*api.GoValue)
|
1390
|
+
}
|
1391
|
+
func handleFromPtr_Ptr_api_GoValue(p interface{}) CGoHandle {
|
1392
|
+
return CGoHandle(gopyh.Register("*api.GoValue", p))
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
// Converters for pointer handles for type: *api.SourceLocation
|
1396
|
+
func ptrFromHandle_Ptr_api_SourceLocation(h CGoHandle) *api.SourceLocation {
|
1397
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.SourceLocation")
|
1398
|
+
if p == nil {
|
1399
|
+
return nil
|
1400
|
+
}
|
1401
|
+
return gopyh.Embed(p, reflect.TypeOf(api.SourceLocation{})).(*api.SourceLocation)
|
1402
|
+
}
|
1403
|
+
func handleFromPtr_Ptr_api_SourceLocation(p interface{}) CGoHandle {
|
1404
|
+
return CGoHandle(gopyh.Register("*api.SourceLocation", p))
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
// Converters for pointer handles for type: *api.UnknownFunctionHandler
|
1408
|
+
func ptrFromHandle_Ptr_api_UnknownFunctionHandler(h CGoHandle) *api.UnknownFunctionHandler {
|
1409
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.UnknownFunctionHandler")
|
1410
|
+
if p == nil {
|
1411
|
+
return nil
|
1412
|
+
}
|
1413
|
+
return gopyh.Embed(p, reflect.TypeOf(api.UnknownFunctionHandler{})).(*api.UnknownFunctionHandler)
|
1414
|
+
}
|
1415
|
+
func handleFromPtr_Ptr_api_UnknownFunctionHandler(p interface{}) CGoHandle {
|
1416
|
+
return CGoHandle(gopyh.Register("*api.UnknownFunctionHandler", p))
|
1417
|
+
}
|
1418
|
+
|
1419
|
+
// Converters for pointer handles for type: *api.VM
|
1420
|
+
func ptrFromHandle_Ptr_api_VM(h CGoHandle) *api.VM {
|
1421
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.VM")
|
1422
|
+
if p == nil {
|
1423
|
+
return nil
|
1424
|
+
}
|
1425
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VM{})).(*api.VM)
|
1426
|
+
}
|
1427
|
+
func handleFromPtr_Ptr_api_VM(p interface{}) CGoHandle {
|
1428
|
+
return CGoHandle(gopyh.Register("*api.VM", p))
|
1429
|
+
}
|
1430
|
+
|
1431
|
+
// Converters for pointer handles for type: *api.VMCompatibilityShim
|
1432
|
+
func ptrFromHandle_Ptr_api_VMCompatibilityShim(h CGoHandle) *api.VMCompatibilityShim {
|
1433
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.VMCompatibilityShim")
|
1434
|
+
if p == nil {
|
1435
|
+
return nil
|
1436
|
+
}
|
1437
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim)
|
1438
|
+
}
|
1439
|
+
func handleFromPtr_Ptr_api_VMCompatibilityShim(p interface{}) CGoHandle {
|
1440
|
+
return CGoHandle(gopyh.Register("*api.VMCompatibilityShim", p))
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
// Converters for pointer handles for type: *api.VMConfig
|
1444
|
+
func ptrFromHandle_Ptr_api_VMConfig(h CGoHandle) *api.VMConfig {
|
1445
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.VMConfig")
|
1446
|
+
if p == nil {
|
1447
|
+
return nil
|
1448
|
+
}
|
1449
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMConfig{})).(*api.VMConfig)
|
1450
|
+
}
|
1451
|
+
func handleFromPtr_Ptr_api_VMConfig(p interface{}) CGoHandle {
|
1452
|
+
return CGoHandle(gopyh.Register("*api.VMConfig", p))
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
// Converters for pointer handles for type: *api.VMError
|
1456
|
+
func ptrFromHandle_Ptr_api_VMError(h CGoHandle) *api.VMError {
|
1457
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*api.VMError")
|
1458
|
+
if p == nil {
|
1459
|
+
return nil
|
1460
|
+
}
|
1461
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMError{})).(*api.VMError)
|
1462
|
+
}
|
1463
|
+
func handleFromPtr_Ptr_api_VMError(p interface{}) CGoHandle {
|
1464
|
+
return CGoHandle(gopyh.Register("*api.VMError", p))
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
// Converters for implicit pointer handles for type: []api.GoValue
|
1468
|
+
func ptrFromHandle_Slice_api_GoValue(h CGoHandle) *[]api.GoValue {
|
1469
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]api.GoValue")
|
1470
|
+
if p == nil {
|
1471
|
+
return nil
|
1472
|
+
}
|
1473
|
+
return p.(*[]api.GoValue)
|
1474
|
+
}
|
1475
|
+
func deptrFromHandle_Slice_api_GoValue(h CGoHandle) []api.GoValue {
|
1476
|
+
p := ptrFromHandle_Slice_api_GoValue(h)
|
1477
|
+
if p == nil {
|
1478
|
+
return nil
|
1479
|
+
}
|
1480
|
+
return *p
|
1481
|
+
}
|
1482
|
+
func handleFromPtr_Slice_api_GoValue(p interface{}) CGoHandle {
|
1483
|
+
return CGoHandle(gopyh.Register("[]api.GoValue", p))
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
// --- wrapping slice: []api.GoValue ---
|
1487
|
+
//
|
1488
|
+
//export Slice_api_GoValue_CTor
|
1489
|
+
func Slice_api_GoValue_CTor() CGoHandle {
|
1490
|
+
return CGoHandle(handleFromPtr_Slice_api_GoValue(&[]api.GoValue{}))
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
//export Slice_api_GoValue_len
|
1494
|
+
func Slice_api_GoValue_len(handle CGoHandle) int {
|
1495
|
+
return len(deptrFromHandle_Slice_api_GoValue(handle))
|
1496
|
+
}
|
1497
|
+
|
1498
|
+
//export Slice_api_GoValue_elem
|
1499
|
+
func Slice_api_GoValue_elem(handle CGoHandle, _idx int) CGoHandle {
|
1500
|
+
s := deptrFromHandle_Slice_api_GoValue(handle)
|
1501
|
+
return handleFromPtr_api_GoValue(&(s[_idx]))
|
1502
|
+
}
|
1503
|
+
|
1504
|
+
//export Slice_api_GoValue_subslice
|
1505
|
+
func Slice_api_GoValue_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1506
|
+
s := deptrFromHandle_Slice_api_GoValue(handle)
|
1507
|
+
ss := s[_st:_ed]
|
1508
|
+
return CGoHandle(handleFromPtr_Slice_api_GoValue(&ss))
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
//export Slice_api_GoValue_set
|
1512
|
+
func Slice_api_GoValue_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
1513
|
+
s := deptrFromHandle_Slice_api_GoValue(handle)
|
1514
|
+
s[_idx] = *ptrFromHandle_api_GoValue(_vl)
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
//export Slice_api_GoValue_append
|
1518
|
+
func Slice_api_GoValue_append(handle CGoHandle, _vl CGoHandle) {
|
1519
|
+
s := ptrFromHandle_Slice_api_GoValue(handle)
|
1520
|
+
*s = append(*s, *ptrFromHandle_api_GoValue(_vl))
|
1521
|
+
}
|
1522
|
+
|
1523
|
+
// Converters for implicit pointer handles for type: []environment.Parameter
|
1524
|
+
func ptrFromHandle_Slice_environment_Parameter(h CGoHandle) *[]environment.Parameter {
|
1525
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]environment.Parameter")
|
1526
|
+
if p == nil {
|
1527
|
+
return nil
|
1528
|
+
}
|
1529
|
+
return p.(*[]environment.Parameter)
|
1530
|
+
}
|
1531
|
+
func deptrFromHandle_Slice_environment_Parameter(h CGoHandle) []environment.Parameter {
|
1532
|
+
p := ptrFromHandle_Slice_environment_Parameter(h)
|
1533
|
+
if p == nil {
|
1534
|
+
return nil
|
1535
|
+
}
|
1536
|
+
return *p
|
1537
|
+
}
|
1538
|
+
func handleFromPtr_Slice_environment_Parameter(p interface{}) CGoHandle {
|
1539
|
+
return CGoHandle(gopyh.Register("[]environment.Parameter", p))
|
1540
|
+
}
|
1541
|
+
|
1542
|
+
// --- wrapping slice: []environment.Parameter ---
|
1543
|
+
//
|
1544
|
+
//export Slice_environment_Parameter_CTor
|
1545
|
+
func Slice_environment_Parameter_CTor() CGoHandle {
|
1546
|
+
return CGoHandle(handleFromPtr_Slice_environment_Parameter(&[]environment.Parameter{}))
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
//export Slice_environment_Parameter_len
|
1550
|
+
func Slice_environment_Parameter_len(handle CGoHandle) int {
|
1551
|
+
return len(deptrFromHandle_Slice_environment_Parameter(handle))
|
1552
|
+
}
|
1553
|
+
|
1554
|
+
//export Slice_environment_Parameter_elem
|
1555
|
+
func Slice_environment_Parameter_elem(handle CGoHandle, _idx int) CGoHandle {
|
1556
|
+
s := deptrFromHandle_Slice_environment_Parameter(handle)
|
1557
|
+
return handleFromPtr_environment_Parameter(&(s[_idx]))
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
//export Slice_environment_Parameter_subslice
|
1561
|
+
func Slice_environment_Parameter_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1562
|
+
s := deptrFromHandle_Slice_environment_Parameter(handle)
|
1563
|
+
ss := s[_st:_ed]
|
1564
|
+
return CGoHandle(handleFromPtr_Slice_environment_Parameter(&ss))
|
1565
|
+
}
|
1566
|
+
|
1567
|
+
//export Slice_environment_Parameter_set
|
1568
|
+
func Slice_environment_Parameter_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
1569
|
+
s := deptrFromHandle_Slice_environment_Parameter(handle)
|
1570
|
+
s[_idx] = *ptrFromHandle_environment_Parameter(_vl)
|
1571
|
+
}
|
1572
|
+
|
1573
|
+
//export Slice_environment_Parameter_append
|
1574
|
+
func Slice_environment_Parameter_append(handle CGoHandle, _vl CGoHandle) {
|
1575
|
+
s := ptrFromHandle_Slice_environment_Parameter(handle)
|
1576
|
+
*s = append(*s, *ptrFromHandle_environment_Parameter(_vl))
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
// Converters for implicit pointer handles for type: []environment.Value
|
1580
|
+
func ptrFromHandle_Slice_environment_Value(h CGoHandle) *[]environment.Value {
|
1581
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]environment.Value")
|
1582
|
+
if p == nil {
|
1583
|
+
return nil
|
1584
|
+
}
|
1585
|
+
return p.(*[]environment.Value)
|
1586
|
+
}
|
1587
|
+
func deptrFromHandle_Slice_environment_Value(h CGoHandle) []environment.Value {
|
1588
|
+
p := ptrFromHandle_Slice_environment_Value(h)
|
1589
|
+
if p == nil {
|
1590
|
+
return nil
|
1591
|
+
}
|
1592
|
+
return *p
|
1593
|
+
}
|
1594
|
+
func handleFromPtr_Slice_environment_Value(p interface{}) CGoHandle {
|
1595
|
+
return CGoHandle(gopyh.Register("[]environment.Value", p))
|
1596
|
+
}
|
1597
|
+
|
1598
|
+
// --- wrapping slice: []environment.Value ---
|
1599
|
+
//
|
1600
|
+
//export Slice_environment_Value_CTor
|
1601
|
+
func Slice_environment_Value_CTor() CGoHandle {
|
1602
|
+
return CGoHandle(handleFromPtr_Slice_environment_Value(&[]environment.Value{}))
|
1603
|
+
}
|
1604
|
+
|
1605
|
+
//export Slice_environment_Value_len
|
1606
|
+
func Slice_environment_Value_len(handle CGoHandle) int {
|
1607
|
+
return len(deptrFromHandle_Slice_environment_Value(handle))
|
1608
|
+
}
|
1609
|
+
|
1610
|
+
//export Slice_environment_Value_elem
|
1611
|
+
func Slice_environment_Value_elem(handle CGoHandle, _idx int) CGoHandle {
|
1612
|
+
s := deptrFromHandle_Slice_environment_Value(handle)
|
1613
|
+
return handleFromPtr_environment_Value(&(s[_idx]))
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
//export Slice_environment_Value_subslice
|
1617
|
+
func Slice_environment_Value_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
1618
|
+
s := deptrFromHandle_Slice_environment_Value(handle)
|
1619
|
+
ss := s[_st:_ed]
|
1620
|
+
return CGoHandle(handleFromPtr_Slice_environment_Value(&ss))
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
//export Slice_environment_Value_set
|
1624
|
+
func Slice_environment_Value_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
1625
|
+
s := deptrFromHandle_Slice_environment_Value(handle)
|
1626
|
+
s[_idx] = ptrFromHandle_environment_Value(_vl)
|
1627
|
+
}
|
1628
|
+
|
1629
|
+
//export Slice_environment_Value_append
|
1630
|
+
func Slice_environment_Value_append(handle CGoHandle, _vl CGoHandle) {
|
1631
|
+
s := ptrFromHandle_Slice_environment_Value(handle)
|
1632
|
+
*s = append(*s, ptrFromHandle_environment_Value(_vl))
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
// Converters for pointer handles for type: any
|
1636
|
+
func ptrFromHandle_any(h CGoHandle) any {
|
1637
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "any")
|
1638
|
+
if p == nil {
|
1639
|
+
return nil
|
1640
|
+
}
|
1641
|
+
return p.(any)
|
1642
|
+
}
|
1643
|
+
func handleFromPtr_any(p interface{}) CGoHandle {
|
1644
|
+
return CGoHandle(gopyh.Register("any", p))
|
1645
|
+
}
|
1646
|
+
|
1647
|
+
// Converters for non-pointer handles for type: api.ClassDefinition
|
1648
|
+
func ptrFromHandle_api_ClassDefinition(h CGoHandle) *api.ClassDefinition {
|
1649
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.ClassDefinition")
|
1650
|
+
if p == nil {
|
1651
|
+
return nil
|
1652
|
+
}
|
1653
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassDefinition{})).(*api.ClassDefinition)
|
1654
|
+
}
|
1655
|
+
func handleFromPtr_api_ClassDefinition(p interface{}) CGoHandle {
|
1656
|
+
return CGoHandle(gopyh.Register("api.ClassDefinition", p))
|
1657
|
+
}
|
1658
|
+
|
1659
|
+
// Converters for non-pointer handles for type: api.ClassMethod
|
1660
|
+
func ptrFromHandle_api_ClassMethod(h CGoHandle) *api.ClassMethod {
|
1661
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.ClassMethod")
|
1662
|
+
if p == nil {
|
1663
|
+
return nil
|
1664
|
+
}
|
1665
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassMethod{})).(*api.ClassMethod)
|
1666
|
+
}
|
1667
|
+
func handleFromPtr_api_ClassMethod(p interface{}) CGoHandle {
|
1668
|
+
return CGoHandle(gopyh.Register("api.ClassMethod", p))
|
1669
|
+
}
|
1670
|
+
|
1671
|
+
// Converters for non-pointer handles for type: api.ClassVariable
|
1672
|
+
func ptrFromHandle_api_ClassVariable(h CGoHandle) *api.ClassVariable {
|
1673
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.ClassVariable")
|
1674
|
+
if p == nil {
|
1675
|
+
return nil
|
1676
|
+
}
|
1677
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ClassVariable{})).(*api.ClassVariable)
|
1678
|
+
}
|
1679
|
+
func handleFromPtr_api_ClassVariable(p interface{}) CGoHandle {
|
1680
|
+
return CGoHandle(gopyh.Register("api.ClassVariable", p))
|
1681
|
+
}
|
1682
|
+
|
1683
|
+
// Converters for non-pointer handles for type: api.ExecutionResult
|
1684
|
+
func ptrFromHandle_api_ExecutionResult(h CGoHandle) *api.ExecutionResult {
|
1685
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.ExecutionResult")
|
1686
|
+
if p == nil {
|
1687
|
+
return nil
|
1688
|
+
}
|
1689
|
+
return gopyh.Embed(p, reflect.TypeOf(api.ExecutionResult{})).(*api.ExecutionResult)
|
1690
|
+
}
|
1691
|
+
func handleFromPtr_api_ExecutionResult(p interface{}) CGoHandle {
|
1692
|
+
return CGoHandle(gopyh.Register("api.ExecutionResult", p))
|
1693
|
+
}
|
1694
|
+
|
1695
|
+
// Converters for non-pointer handles for type: api.GoValue
|
1696
|
+
func ptrFromHandle_api_GoValue(h CGoHandle) *api.GoValue {
|
1697
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.GoValue")
|
1698
|
+
if p == nil {
|
1699
|
+
return nil
|
1700
|
+
}
|
1701
|
+
return gopyh.Embed(p, reflect.TypeOf(api.GoValue{})).(*api.GoValue)
|
1702
|
+
}
|
1703
|
+
func handleFromPtr_api_GoValue(p interface{}) CGoHandle {
|
1704
|
+
return CGoHandle(gopyh.Register("api.GoValue", p))
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
// Converters for non-pointer handles for type: api.SourceLocation
|
1708
|
+
func ptrFromHandle_api_SourceLocation(h CGoHandle) *api.SourceLocation {
|
1709
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.SourceLocation")
|
1710
|
+
if p == nil {
|
1711
|
+
return nil
|
1712
|
+
}
|
1713
|
+
return gopyh.Embed(p, reflect.TypeOf(api.SourceLocation{})).(*api.SourceLocation)
|
1714
|
+
}
|
1715
|
+
func handleFromPtr_api_SourceLocation(p interface{}) CGoHandle {
|
1716
|
+
return CGoHandle(gopyh.Register("api.SourceLocation", p))
|
1717
|
+
}
|
1718
|
+
|
1719
|
+
// Converters for non-pointer handles for type: api.UnknownFunctionHandler
|
1720
|
+
func ptrFromHandle_api_UnknownFunctionHandler(h CGoHandle) *api.UnknownFunctionHandler {
|
1721
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.UnknownFunctionHandler")
|
1722
|
+
if p == nil {
|
1723
|
+
return nil
|
1724
|
+
}
|
1725
|
+
return gopyh.Embed(p, reflect.TypeOf(api.UnknownFunctionHandler{})).(*api.UnknownFunctionHandler)
|
1726
|
+
}
|
1727
|
+
func handleFromPtr_api_UnknownFunctionHandler(p interface{}) CGoHandle {
|
1728
|
+
return CGoHandle(gopyh.Register("api.UnknownFunctionHandler", p))
|
1729
|
+
}
|
1730
|
+
|
1731
|
+
// Converters for non-pointer handles for type: api.VM
|
1732
|
+
func ptrFromHandle_api_VM(h CGoHandle) *api.VM {
|
1733
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.VM")
|
1734
|
+
if p == nil {
|
1735
|
+
return nil
|
1736
|
+
}
|
1737
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VM{})).(*api.VM)
|
1738
|
+
}
|
1739
|
+
func handleFromPtr_api_VM(p interface{}) CGoHandle {
|
1740
|
+
return CGoHandle(gopyh.Register("api.VM", p))
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
// Converters for non-pointer handles for type: api.VMCompatibilityShim
|
1744
|
+
func ptrFromHandle_api_VMCompatibilityShim(h CGoHandle) *api.VMCompatibilityShim {
|
1745
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.VMCompatibilityShim")
|
1746
|
+
if p == nil {
|
1747
|
+
return nil
|
1748
|
+
}
|
1749
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim)
|
1750
|
+
}
|
1751
|
+
func handleFromPtr_api_VMCompatibilityShim(p interface{}) CGoHandle {
|
1752
|
+
return CGoHandle(gopyh.Register("api.VMCompatibilityShim", p))
|
1753
|
+
}
|
1754
|
+
|
1755
|
+
// Converters for non-pointer handles for type: api.VMConfig
|
1756
|
+
func ptrFromHandle_api_VMConfig(h CGoHandle) *api.VMConfig {
|
1757
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.VMConfig")
|
1758
|
+
if p == nil {
|
1759
|
+
return nil
|
1760
|
+
}
|
1761
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMConfig{})).(*api.VMConfig)
|
1762
|
+
}
|
1763
|
+
func handleFromPtr_api_VMConfig(p interface{}) CGoHandle {
|
1764
|
+
return CGoHandle(gopyh.Register("api.VMConfig", p))
|
1765
|
+
}
|
1766
|
+
|
1767
|
+
// Converters for non-pointer handles for type: api.VMError
|
1768
|
+
func ptrFromHandle_api_VMError(h CGoHandle) *api.VMError {
|
1769
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "api.VMError")
|
1770
|
+
if p == nil {
|
1771
|
+
return nil
|
1772
|
+
}
|
1773
|
+
return gopyh.Embed(p, reflect.TypeOf(api.VMError{})).(*api.VMError)
|
1774
|
+
}
|
1775
|
+
func handleFromPtr_api_VMError(p interface{}) CGoHandle {
|
1776
|
+
return CGoHandle(gopyh.Register("api.VMError", p))
|
1777
|
+
}
|
1778
|
+
|
1779
|
+
// Converters for implicit pointer handles for type: map[string]*api.ClassMethod
|
1780
|
+
func ptrFromHandle_Map_string_Ptr_api_ClassMethod(h CGoHandle) *map[string]*api.ClassMethod {
|
1781
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*api.ClassMethod")
|
1782
|
+
if p == nil {
|
1783
|
+
return nil
|
1784
|
+
}
|
1785
|
+
return p.(*map[string]*api.ClassMethod)
|
1786
|
+
}
|
1787
|
+
func deptrFromHandle_Map_string_Ptr_api_ClassMethod(h CGoHandle) map[string]*api.ClassMethod {
|
1788
|
+
p := ptrFromHandle_Map_string_Ptr_api_ClassMethod(h)
|
1789
|
+
if p == nil {
|
1790
|
+
return nil
|
1791
|
+
}
|
1792
|
+
return *p
|
1793
|
+
}
|
1794
|
+
func handleFromPtr_Map_string_Ptr_api_ClassMethod(p interface{}) CGoHandle {
|
1795
|
+
return CGoHandle(gopyh.Register("map[string]*api.ClassMethod", p))
|
1796
|
+
}
|
1797
|
+
|
1798
|
+
// --- wrapping map: map[string]*api.ClassMethod ---
|
1799
|
+
//
|
1800
|
+
//export Map_string_Ptr_api_ClassMethod_CTor
|
1801
|
+
func Map_string_Ptr_api_ClassMethod_CTor() CGoHandle {
|
1802
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_api_ClassMethod(&map[string]*api.ClassMethod{}))
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
//export Map_string_Ptr_api_ClassMethod_len
|
1806
|
+
func Map_string_Ptr_api_ClassMethod_len(handle CGoHandle) int {
|
1807
|
+
return len(deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle))
|
1808
|
+
}
|
1809
|
+
|
1810
|
+
//export Map_string_Ptr_api_ClassMethod_elem
|
1811
|
+
func Map_string_Ptr_api_ClassMethod_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
1812
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle)
|
1813
|
+
v, ok := s[C.GoString(_ky)]
|
1814
|
+
if !ok {
|
1815
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
1816
|
+
}
|
1817
|
+
return handleFromPtr_Ptr_api_ClassMethod(&v)
|
1818
|
+
}
|
1819
|
+
|
1820
|
+
//export Map_string_Ptr_api_ClassMethod_contains
|
1821
|
+
func Map_string_Ptr_api_ClassMethod_contains(handle CGoHandle, _ky *C.char) C.char {
|
1822
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle)
|
1823
|
+
_, ok := s[C.GoString(_ky)]
|
1824
|
+
return boolGoToPy(ok)
|
1825
|
+
}
|
1826
|
+
|
1827
|
+
//export Map_string_Ptr_api_ClassMethod_set
|
1828
|
+
func Map_string_Ptr_api_ClassMethod_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
1829
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle)
|
1830
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_api_ClassMethod(_vl)
|
1831
|
+
}
|
1832
|
+
|
1833
|
+
//export Map_string_Ptr_api_ClassMethod_delete
|
1834
|
+
func Map_string_Ptr_api_ClassMethod_delete(handle CGoHandle, _ky *C.char) {
|
1835
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle)
|
1836
|
+
delete(s, C.GoString(_ky))
|
1837
|
+
}
|
1838
|
+
|
1839
|
+
//export Map_string_Ptr_api_ClassMethod_keys
|
1840
|
+
func Map_string_Ptr_api_ClassMethod_keys(handle CGoHandle) CGoHandle {
|
1841
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassMethod(handle)
|
1842
|
+
kys := make([]string, 0, len(s))
|
1843
|
+
for k := range s {
|
1844
|
+
kys = append(kys, k)
|
1845
|
+
}
|
1846
|
+
return handleFromPtr_Slice_string(&kys)
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
// Converters for implicit pointer handles for type: map[string]*api.ClassVariable
|
1850
|
+
func ptrFromHandle_Map_string_Ptr_api_ClassVariable(h CGoHandle) *map[string]*api.ClassVariable {
|
1851
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*api.ClassVariable")
|
1852
|
+
if p == nil {
|
1853
|
+
return nil
|
1854
|
+
}
|
1855
|
+
return p.(*map[string]*api.ClassVariable)
|
1856
|
+
}
|
1857
|
+
func deptrFromHandle_Map_string_Ptr_api_ClassVariable(h CGoHandle) map[string]*api.ClassVariable {
|
1858
|
+
p := ptrFromHandle_Map_string_Ptr_api_ClassVariable(h)
|
1859
|
+
if p == nil {
|
1860
|
+
return nil
|
1861
|
+
}
|
1862
|
+
return *p
|
1863
|
+
}
|
1864
|
+
func handleFromPtr_Map_string_Ptr_api_ClassVariable(p interface{}) CGoHandle {
|
1865
|
+
return CGoHandle(gopyh.Register("map[string]*api.ClassVariable", p))
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
// --- wrapping map: map[string]*api.ClassVariable ---
|
1869
|
+
//
|
1870
|
+
//export Map_string_Ptr_api_ClassVariable_CTor
|
1871
|
+
func Map_string_Ptr_api_ClassVariable_CTor() CGoHandle {
|
1872
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_api_ClassVariable(&map[string]*api.ClassVariable{}))
|
1873
|
+
}
|
1874
|
+
|
1875
|
+
//export Map_string_Ptr_api_ClassVariable_len
|
1876
|
+
func Map_string_Ptr_api_ClassVariable_len(handle CGoHandle) int {
|
1877
|
+
return len(deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle))
|
1878
|
+
}
|
1879
|
+
|
1880
|
+
//export Map_string_Ptr_api_ClassVariable_elem
|
1881
|
+
func Map_string_Ptr_api_ClassVariable_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
1882
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle)
|
1883
|
+
v, ok := s[C.GoString(_ky)]
|
1884
|
+
if !ok {
|
1885
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
1886
|
+
}
|
1887
|
+
return handleFromPtr_Ptr_api_ClassVariable(&v)
|
1888
|
+
}
|
1889
|
+
|
1890
|
+
//export Map_string_Ptr_api_ClassVariable_contains
|
1891
|
+
func Map_string_Ptr_api_ClassVariable_contains(handle CGoHandle, _ky *C.char) C.char {
|
1892
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle)
|
1893
|
+
_, ok := s[C.GoString(_ky)]
|
1894
|
+
return boolGoToPy(ok)
|
1895
|
+
}
|
1896
|
+
|
1897
|
+
//export Map_string_Ptr_api_ClassVariable_set
|
1898
|
+
func Map_string_Ptr_api_ClassVariable_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
1899
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle)
|
1900
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_api_ClassVariable(_vl)
|
1901
|
+
}
|
1902
|
+
|
1903
|
+
//export Map_string_Ptr_api_ClassVariable_delete
|
1904
|
+
func Map_string_Ptr_api_ClassVariable_delete(handle CGoHandle, _ky *C.char) {
|
1905
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle)
|
1906
|
+
delete(s, C.GoString(_ky))
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
//export Map_string_Ptr_api_ClassVariable_keys
|
1910
|
+
func Map_string_Ptr_api_ClassVariable_keys(handle CGoHandle) CGoHandle {
|
1911
|
+
s := deptrFromHandle_Map_string_Ptr_api_ClassVariable(handle)
|
1912
|
+
kys := make([]string, 0, len(s))
|
1913
|
+
for k := range s {
|
1914
|
+
kys = append(kys, k)
|
1915
|
+
}
|
1916
|
+
return handleFromPtr_Slice_string(&kys)
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
// Converters for implicit pointer handles for type: map[string]*environment.Class
|
1920
|
+
func ptrFromHandle_Map_string_Ptr_environment_Class(h CGoHandle) *map[string]*environment.Class {
|
1921
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*environment.Class")
|
1922
|
+
if p == nil {
|
1923
|
+
return nil
|
1924
|
+
}
|
1925
|
+
return p.(*map[string]*environment.Class)
|
1926
|
+
}
|
1927
|
+
func deptrFromHandle_Map_string_Ptr_environment_Class(h CGoHandle) map[string]*environment.Class {
|
1928
|
+
p := ptrFromHandle_Map_string_Ptr_environment_Class(h)
|
1929
|
+
if p == nil {
|
1930
|
+
return nil
|
1931
|
+
}
|
1932
|
+
return *p
|
1933
|
+
}
|
1934
|
+
func handleFromPtr_Map_string_Ptr_environment_Class(p interface{}) CGoHandle {
|
1935
|
+
return CGoHandle(gopyh.Register("map[string]*environment.Class", p))
|
1936
|
+
}
|
1937
|
+
|
1938
|
+
// --- wrapping map: map[string]*environment.Class ---
|
1939
|
+
//
|
1940
|
+
//export Map_string_Ptr_environment_Class_CTor
|
1941
|
+
func Map_string_Ptr_environment_Class_CTor() CGoHandle {
|
1942
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_environment_Class(&map[string]*environment.Class{}))
|
1943
|
+
}
|
1944
|
+
|
1945
|
+
//export Map_string_Ptr_environment_Class_len
|
1946
|
+
func Map_string_Ptr_environment_Class_len(handle CGoHandle) int {
|
1947
|
+
return len(deptrFromHandle_Map_string_Ptr_environment_Class(handle))
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
//export Map_string_Ptr_environment_Class_elem
|
1951
|
+
func Map_string_Ptr_environment_Class_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
1952
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Class(handle)
|
1953
|
+
v, ok := s[C.GoString(_ky)]
|
1954
|
+
if !ok {
|
1955
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
1956
|
+
}
|
1957
|
+
return handleFromPtr_Ptr_environment_Class(&v)
|
1958
|
+
}
|
1959
|
+
|
1960
|
+
//export Map_string_Ptr_environment_Class_contains
|
1961
|
+
func Map_string_Ptr_environment_Class_contains(handle CGoHandle, _ky *C.char) C.char {
|
1962
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Class(handle)
|
1963
|
+
_, ok := s[C.GoString(_ky)]
|
1964
|
+
return boolGoToPy(ok)
|
1965
|
+
}
|
1966
|
+
|
1967
|
+
//export Map_string_Ptr_environment_Class_set
|
1968
|
+
func Map_string_Ptr_environment_Class_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
1969
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Class(handle)
|
1970
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_environment_Class(_vl)
|
1971
|
+
}
|
1972
|
+
|
1973
|
+
//export Map_string_Ptr_environment_Class_delete
|
1974
|
+
func Map_string_Ptr_environment_Class_delete(handle CGoHandle, _ky *C.char) {
|
1975
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Class(handle)
|
1976
|
+
delete(s, C.GoString(_ky))
|
1977
|
+
}
|
1978
|
+
|
1979
|
+
//export Map_string_Ptr_environment_Class_keys
|
1980
|
+
func Map_string_Ptr_environment_Class_keys(handle CGoHandle) CGoHandle {
|
1981
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Class(handle)
|
1982
|
+
kys := make([]string, 0, len(s))
|
1983
|
+
for k := range s {
|
1984
|
+
kys = append(kys, k)
|
1985
|
+
}
|
1986
|
+
return handleFromPtr_Slice_string(&kys)
|
1987
|
+
}
|
1988
|
+
|
1989
|
+
// Converters for implicit pointer handles for type: map[string]*environment.Function
|
1990
|
+
func ptrFromHandle_Map_string_Ptr_environment_Function(h CGoHandle) *map[string]*environment.Function {
|
1991
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*environment.Function")
|
1992
|
+
if p == nil {
|
1993
|
+
return nil
|
1994
|
+
}
|
1995
|
+
return p.(*map[string]*environment.Function)
|
1996
|
+
}
|
1997
|
+
func deptrFromHandle_Map_string_Ptr_environment_Function(h CGoHandle) map[string]*environment.Function {
|
1998
|
+
p := ptrFromHandle_Map_string_Ptr_environment_Function(h)
|
1999
|
+
if p == nil {
|
2000
|
+
return nil
|
2001
|
+
}
|
2002
|
+
return *p
|
2003
|
+
}
|
2004
|
+
func handleFromPtr_Map_string_Ptr_environment_Function(p interface{}) CGoHandle {
|
2005
|
+
return CGoHandle(gopyh.Register("map[string]*environment.Function", p))
|
2006
|
+
}
|
2007
|
+
|
2008
|
+
// --- wrapping map: map[string]*environment.Function ---
|
2009
|
+
//
|
2010
|
+
//export Map_string_Ptr_environment_Function_CTor
|
2011
|
+
func Map_string_Ptr_environment_Function_CTor() CGoHandle {
|
2012
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_environment_Function(&map[string]*environment.Function{}))
|
2013
|
+
}
|
2014
|
+
|
2015
|
+
//export Map_string_Ptr_environment_Function_len
|
2016
|
+
func Map_string_Ptr_environment_Function_len(handle CGoHandle) int {
|
2017
|
+
return len(deptrFromHandle_Map_string_Ptr_environment_Function(handle))
|
2018
|
+
}
|
2019
|
+
|
2020
|
+
//export Map_string_Ptr_environment_Function_elem
|
2021
|
+
func Map_string_Ptr_environment_Function_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
2022
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Function(handle)
|
2023
|
+
v, ok := s[C.GoString(_ky)]
|
2024
|
+
if !ok {
|
2025
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
2026
|
+
}
|
2027
|
+
return handleFromPtr_Ptr_environment_Function(&v)
|
2028
|
+
}
|
2029
|
+
|
2030
|
+
//export Map_string_Ptr_environment_Function_contains
|
2031
|
+
func Map_string_Ptr_environment_Function_contains(handle CGoHandle, _ky *C.char) C.char {
|
2032
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Function(handle)
|
2033
|
+
_, ok := s[C.GoString(_ky)]
|
2034
|
+
return boolGoToPy(ok)
|
2035
|
+
}
|
2036
|
+
|
2037
|
+
//export Map_string_Ptr_environment_Function_set
|
2038
|
+
func Map_string_Ptr_environment_Function_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
2039
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Function(handle)
|
2040
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_environment_Function(_vl)
|
2041
|
+
}
|
2042
|
+
|
2043
|
+
//export Map_string_Ptr_environment_Function_delete
|
2044
|
+
func Map_string_Ptr_environment_Function_delete(handle CGoHandle, _ky *C.char) {
|
2045
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Function(handle)
|
2046
|
+
delete(s, C.GoString(_ky))
|
2047
|
+
}
|
2048
|
+
|
2049
|
+
//export Map_string_Ptr_environment_Function_keys
|
2050
|
+
func Map_string_Ptr_environment_Function_keys(handle CGoHandle) CGoHandle {
|
2051
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Function(handle)
|
2052
|
+
kys := make([]string, 0, len(s))
|
2053
|
+
for k := range s {
|
2054
|
+
kys = append(kys, k)
|
2055
|
+
}
|
2056
|
+
return handleFromPtr_Slice_string(&kys)
|
2057
|
+
}
|
2058
|
+
|
2059
|
+
// Converters for implicit pointer handles for type: map[string]*environment.MemberVariable
|
2060
|
+
func ptrFromHandle_Map_string_Ptr_environment_MemberVariable(h CGoHandle) *map[string]*environment.MemberVariable {
|
2061
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*environment.MemberVariable")
|
2062
|
+
if p == nil {
|
2063
|
+
return nil
|
2064
|
+
}
|
2065
|
+
return p.(*map[string]*environment.MemberVariable)
|
2066
|
+
}
|
2067
|
+
func deptrFromHandle_Map_string_Ptr_environment_MemberVariable(h CGoHandle) map[string]*environment.MemberVariable {
|
2068
|
+
p := ptrFromHandle_Map_string_Ptr_environment_MemberVariable(h)
|
2069
|
+
if p == nil {
|
2070
|
+
return nil
|
2071
|
+
}
|
2072
|
+
return *p
|
2073
|
+
}
|
2074
|
+
func handleFromPtr_Map_string_Ptr_environment_MemberVariable(p interface{}) CGoHandle {
|
2075
|
+
return CGoHandle(gopyh.Register("map[string]*environment.MemberVariable", p))
|
2076
|
+
}
|
2077
|
+
|
2078
|
+
// --- wrapping map: map[string]*environment.MemberVariable ---
|
2079
|
+
//
|
2080
|
+
//export Map_string_Ptr_environment_MemberVariable_CTor
|
2081
|
+
func Map_string_Ptr_environment_MemberVariable_CTor() CGoHandle {
|
2082
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_environment_MemberVariable(&map[string]*environment.MemberVariable{}))
|
2083
|
+
}
|
2084
|
+
|
2085
|
+
//export Map_string_Ptr_environment_MemberVariable_len
|
2086
|
+
func Map_string_Ptr_environment_MemberVariable_len(handle CGoHandle) int {
|
2087
|
+
return len(deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle))
|
2088
|
+
}
|
2089
|
+
|
2090
|
+
//export Map_string_Ptr_environment_MemberVariable_elem
|
2091
|
+
func Map_string_Ptr_environment_MemberVariable_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
2092
|
+
s := deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle)
|
2093
|
+
v, ok := s[C.GoString(_ky)]
|
2094
|
+
if !ok {
|
2095
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
2096
|
+
}
|
2097
|
+
return handleFromPtr_Ptr_environment_MemberVariable(&v)
|
2098
|
+
}
|
2099
|
+
|
2100
|
+
//export Map_string_Ptr_environment_MemberVariable_contains
|
2101
|
+
func Map_string_Ptr_environment_MemberVariable_contains(handle CGoHandle, _ky *C.char) C.char {
|
2102
|
+
s := deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle)
|
2103
|
+
_, ok := s[C.GoString(_ky)]
|
2104
|
+
return boolGoToPy(ok)
|
2105
|
+
}
|
2106
|
+
|
2107
|
+
//export Map_string_Ptr_environment_MemberVariable_set
|
2108
|
+
func Map_string_Ptr_environment_MemberVariable_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
2109
|
+
s := deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle)
|
2110
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_environment_MemberVariable(_vl)
|
2111
|
+
}
|
2112
|
+
|
2113
|
+
//export Map_string_Ptr_environment_MemberVariable_delete
|
2114
|
+
func Map_string_Ptr_environment_MemberVariable_delete(handle CGoHandle, _ky *C.char) {
|
2115
|
+
s := deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle)
|
2116
|
+
delete(s, C.GoString(_ky))
|
2117
|
+
}
|
2118
|
+
|
2119
|
+
//export Map_string_Ptr_environment_MemberVariable_keys
|
2120
|
+
func Map_string_Ptr_environment_MemberVariable_keys(handle CGoHandle) CGoHandle {
|
2121
|
+
s := deptrFromHandle_Map_string_Ptr_environment_MemberVariable(handle)
|
2122
|
+
kys := make([]string, 0, len(s))
|
2123
|
+
for k := range s {
|
2124
|
+
kys = append(kys, k)
|
2125
|
+
}
|
2126
|
+
return handleFromPtr_Slice_string(&kys)
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
// Converters for implicit pointer handles for type: map[string]*environment.Variable
|
2130
|
+
func ptrFromHandle_Map_string_Ptr_environment_Variable(h CGoHandle) *map[string]*environment.Variable {
|
2131
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]*environment.Variable")
|
2132
|
+
if p == nil {
|
2133
|
+
return nil
|
2134
|
+
}
|
2135
|
+
return p.(*map[string]*environment.Variable)
|
2136
|
+
}
|
2137
|
+
func deptrFromHandle_Map_string_Ptr_environment_Variable(h CGoHandle) map[string]*environment.Variable {
|
2138
|
+
p := ptrFromHandle_Map_string_Ptr_environment_Variable(h)
|
2139
|
+
if p == nil {
|
2140
|
+
return nil
|
2141
|
+
}
|
2142
|
+
return *p
|
2143
|
+
}
|
2144
|
+
func handleFromPtr_Map_string_Ptr_environment_Variable(p interface{}) CGoHandle {
|
2145
|
+
return CGoHandle(gopyh.Register("map[string]*environment.Variable", p))
|
2146
|
+
}
|
2147
|
+
|
2148
|
+
// --- wrapping map: map[string]*environment.Variable ---
|
2149
|
+
//
|
2150
|
+
//export Map_string_Ptr_environment_Variable_CTor
|
2151
|
+
func Map_string_Ptr_environment_Variable_CTor() CGoHandle {
|
2152
|
+
return CGoHandle(handleFromPtr_Map_string_Ptr_environment_Variable(&map[string]*environment.Variable{}))
|
2153
|
+
}
|
2154
|
+
|
2155
|
+
//export Map_string_Ptr_environment_Variable_len
|
2156
|
+
func Map_string_Ptr_environment_Variable_len(handle CGoHandle) int {
|
2157
|
+
return len(deptrFromHandle_Map_string_Ptr_environment_Variable(handle))
|
2158
|
+
}
|
2159
|
+
|
2160
|
+
//export Map_string_Ptr_environment_Variable_elem
|
2161
|
+
func Map_string_Ptr_environment_Variable_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
2162
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Variable(handle)
|
2163
|
+
v, ok := s[C.GoString(_ky)]
|
2164
|
+
if !ok {
|
2165
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
2166
|
+
}
|
2167
|
+
return handleFromPtr_Ptr_environment_Variable(&v)
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
//export Map_string_Ptr_environment_Variable_contains
|
2171
|
+
func Map_string_Ptr_environment_Variable_contains(handle CGoHandle, _ky *C.char) C.char {
|
2172
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Variable(handle)
|
2173
|
+
_, ok := s[C.GoString(_ky)]
|
2174
|
+
return boolGoToPy(ok)
|
2175
|
+
}
|
2176
|
+
|
2177
|
+
//export Map_string_Ptr_environment_Variable_set
|
2178
|
+
func Map_string_Ptr_environment_Variable_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
2179
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Variable(handle)
|
2180
|
+
s[C.GoString(_ky)] = ptrFromHandle_Ptr_environment_Variable(_vl)
|
2181
|
+
}
|
2182
|
+
|
2183
|
+
//export Map_string_Ptr_environment_Variable_delete
|
2184
|
+
func Map_string_Ptr_environment_Variable_delete(handle CGoHandle, _ky *C.char) {
|
2185
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Variable(handle)
|
2186
|
+
delete(s, C.GoString(_ky))
|
2187
|
+
}
|
2188
|
+
|
2189
|
+
//export Map_string_Ptr_environment_Variable_keys
|
2190
|
+
func Map_string_Ptr_environment_Variable_keys(handle CGoHandle) CGoHandle {
|
2191
|
+
s := deptrFromHandle_Map_string_Ptr_environment_Variable(handle)
|
2192
|
+
kys := make([]string, 0, len(s))
|
2193
|
+
for k := range s {
|
2194
|
+
kys = append(kys, k)
|
2195
|
+
}
|
2196
|
+
return handleFromPtr_Slice_string(&kys)
|
2197
|
+
}
|
2198
|
+
|
2199
|
+
// Converters for implicit pointer handles for type: map[string]api.GoValue
|
2200
|
+
func ptrFromHandle_Map_string_api_GoValue(h CGoHandle) *map[string]api.GoValue {
|
2201
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "map[string]api.GoValue")
|
2202
|
+
if p == nil {
|
2203
|
+
return nil
|
2204
|
+
}
|
2205
|
+
return p.(*map[string]api.GoValue)
|
2206
|
+
}
|
2207
|
+
func deptrFromHandle_Map_string_api_GoValue(h CGoHandle) map[string]api.GoValue {
|
2208
|
+
p := ptrFromHandle_Map_string_api_GoValue(h)
|
2209
|
+
if p == nil {
|
2210
|
+
return nil
|
2211
|
+
}
|
2212
|
+
return *p
|
2213
|
+
}
|
2214
|
+
func handleFromPtr_Map_string_api_GoValue(p interface{}) CGoHandle {
|
2215
|
+
return CGoHandle(gopyh.Register("map[string]api.GoValue", p))
|
2216
|
+
}
|
2217
|
+
|
2218
|
+
// --- wrapping map: map[string]api.GoValue ---
|
2219
|
+
//
|
2220
|
+
//export Map_string_api_GoValue_CTor
|
2221
|
+
func Map_string_api_GoValue_CTor() CGoHandle {
|
2222
|
+
return CGoHandle(handleFromPtr_Map_string_api_GoValue(&map[string]api.GoValue{}))
|
2223
|
+
}
|
2224
|
+
|
2225
|
+
//export Map_string_api_GoValue_len
|
2226
|
+
func Map_string_api_GoValue_len(handle CGoHandle) int {
|
2227
|
+
return len(deptrFromHandle_Map_string_api_GoValue(handle))
|
2228
|
+
}
|
2229
|
+
|
2230
|
+
//export Map_string_api_GoValue_elem
|
2231
|
+
func Map_string_api_GoValue_elem(handle CGoHandle, _ky *C.char) CGoHandle {
|
2232
|
+
s := deptrFromHandle_Map_string_api_GoValue(handle)
|
2233
|
+
v, ok := s[C.GoString(_ky)]
|
2234
|
+
if !ok {
|
2235
|
+
C.PyErr_SetString(C.PyExc_KeyError, C.CString("key not in map"))
|
2236
|
+
}
|
2237
|
+
return handleFromPtr_api_GoValue(&v)
|
2238
|
+
}
|
2239
|
+
|
2240
|
+
//export Map_string_api_GoValue_contains
|
2241
|
+
func Map_string_api_GoValue_contains(handle CGoHandle, _ky *C.char) C.char {
|
2242
|
+
s := deptrFromHandle_Map_string_api_GoValue(handle)
|
2243
|
+
_, ok := s[C.GoString(_ky)]
|
2244
|
+
return boolGoToPy(ok)
|
2245
|
+
}
|
2246
|
+
|
2247
|
+
//export Map_string_api_GoValue_set
|
2248
|
+
func Map_string_api_GoValue_set(handle CGoHandle, _ky *C.char, _vl CGoHandle) {
|
2249
|
+
s := deptrFromHandle_Map_string_api_GoValue(handle)
|
2250
|
+
s[C.GoString(_ky)] = *ptrFromHandle_api_GoValue(_vl)
|
2251
|
+
}
|
2252
|
+
|
2253
|
+
//export Map_string_api_GoValue_delete
|
2254
|
+
func Map_string_api_GoValue_delete(handle CGoHandle, _ky *C.char) {
|
2255
|
+
s := deptrFromHandle_Map_string_api_GoValue(handle)
|
2256
|
+
delete(s, C.GoString(_ky))
|
2257
|
+
}
|
2258
|
+
|
2259
|
+
//export Map_string_api_GoValue_keys
|
2260
|
+
func Map_string_api_GoValue_keys(handle CGoHandle) CGoHandle {
|
2261
|
+
s := deptrFromHandle_Map_string_api_GoValue(handle)
|
2262
|
+
kys := make([]string, 0, len(s))
|
2263
|
+
for k := range s {
|
2264
|
+
kys = append(kys, k)
|
2265
|
+
}
|
2266
|
+
return handleFromPtr_Slice_string(&kys)
|
2267
|
+
}
|
2268
|
+
|
2269
|
+
// ---- Global Variables: can only use functions to access ---
|
2270
|
+
|
2271
|
+
// ---- Interfaces ---
|
2272
|
+
|
2273
|
+
// ---- Structs ---
|
2274
|
+
|
2275
|
+
// --- wrapping struct: api.VMConfig ---
|
2276
|
+
//
|
2277
|
+
//export api_VMConfig_CTor
|
2278
|
+
func api_VMConfig_CTor() CGoHandle {
|
2279
|
+
return CGoHandle(handleFromPtr_api_VMConfig(&api.VMConfig{}))
|
2280
|
+
}
|
2281
|
+
|
2282
|
+
//export api_VMConfig_Stdout_Get
|
2283
|
+
func api_VMConfig_Stdout_Get(handle CGoHandle) CGoHandle {
|
2284
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2285
|
+
return handleFromPtr_io_Writer(op.Stdout)
|
2286
|
+
}
|
2287
|
+
|
2288
|
+
//export api_VMConfig_Stdout_Set
|
2289
|
+
func api_VMConfig_Stdout_Set(handle CGoHandle, val CGoHandle) {
|
2290
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2291
|
+
op.Stdout = ptrFromHandle_io_Writer(val)
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
//export api_VMConfig_Stdin_Get
|
2295
|
+
func api_VMConfig_Stdin_Get(handle CGoHandle) CGoHandle {
|
2296
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2297
|
+
return handleFromPtr_io_Reader(op.Stdin)
|
2298
|
+
}
|
2299
|
+
|
2300
|
+
//export api_VMConfig_Stdin_Set
|
2301
|
+
func api_VMConfig_Stdin_Set(handle CGoHandle, val CGoHandle) {
|
2302
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2303
|
+
op.Stdin = ptrFromHandle_io_Reader(val)
|
2304
|
+
}
|
2305
|
+
|
2306
|
+
//export api_VMConfig_Timeout_Get
|
2307
|
+
func api_VMConfig_Timeout_Get(handle CGoHandle) C.longlong {
|
2308
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2309
|
+
return C.longlong(int64(op.Timeout))
|
2310
|
+
}
|
2311
|
+
|
2312
|
+
//export api_VMConfig_Timeout_Set
|
2313
|
+
func api_VMConfig_Timeout_Set(handle CGoHandle, val C.longlong) {
|
2314
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2315
|
+
op.Timeout = time.Duration(int64(val))
|
2316
|
+
}
|
2317
|
+
|
2318
|
+
//export api_VMConfig_WorkingDirectory_Get
|
2319
|
+
func api_VMConfig_WorkingDirectory_Get(handle CGoHandle) *C.char {
|
2320
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2321
|
+
return C.CString(op.WorkingDirectory)
|
2322
|
+
}
|
2323
|
+
|
2324
|
+
//export api_VMConfig_WorkingDirectory_Set
|
2325
|
+
func api_VMConfig_WorkingDirectory_Set(handle CGoHandle, val *C.char) {
|
2326
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2327
|
+
op.WorkingDirectory = C.GoString(val)
|
2328
|
+
}
|
2329
|
+
|
2330
|
+
//export api_VMConfig_Validate
|
2331
|
+
func api_VMConfig_Validate(_handle CGoHandle) *C.char {
|
2332
|
+
_saved_thread := C.PyEval_SaveThread()
|
2333
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMConfig")
|
2334
|
+
if __err != nil {
|
2335
|
+
return errorGoToPy(nil)
|
2336
|
+
}
|
2337
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMConfig{})).(*api.VMConfig).Validate()
|
2338
|
+
|
2339
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2340
|
+
if __err != nil {
|
2341
|
+
estr := C.CString(__err.Error())
|
2342
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2343
|
+
return estr
|
2344
|
+
}
|
2345
|
+
return C.CString("")
|
2346
|
+
}
|
2347
|
+
|
2348
|
+
// --- wrapping struct: api.VMError ---
|
2349
|
+
//
|
2350
|
+
//export api_VMError_CTor
|
2351
|
+
func api_VMError_CTor() CGoHandle {
|
2352
|
+
return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
|
2353
|
+
}
|
2354
|
+
|
2355
|
+
//export api_VMError_Type_Get
|
2356
|
+
func api_VMError_Type_Get(handle CGoHandle) *C.char {
|
2357
|
+
op := ptrFromHandle_api_VMError(handle)
|
2358
|
+
return C.CString(string(op.Type))
|
2359
|
+
}
|
2360
|
+
|
2361
|
+
//export api_VMError_Type_Set
|
2362
|
+
func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
|
2363
|
+
op := ptrFromHandle_api_VMError(handle)
|
2364
|
+
op.Type = api.ErrorType(C.GoString(val))
|
2365
|
+
}
|
2366
|
+
|
2367
|
+
//export api_VMError_Message_Get
|
2368
|
+
func api_VMError_Message_Get(handle CGoHandle) *C.char {
|
2369
|
+
op := ptrFromHandle_api_VMError(handle)
|
2370
|
+
return C.CString(op.Message)
|
2371
|
+
}
|
2372
|
+
|
2373
|
+
//export api_VMError_Message_Set
|
2374
|
+
func api_VMError_Message_Set(handle CGoHandle, val *C.char) {
|
2375
|
+
op := ptrFromHandle_api_VMError(handle)
|
2376
|
+
op.Message = C.GoString(val)
|
2377
|
+
}
|
2378
|
+
|
2379
|
+
//export api_VMError_Source_Get
|
2380
|
+
func api_VMError_Source_Get(handle CGoHandle) CGoHandle {
|
2381
|
+
op := ptrFromHandle_api_VMError(handle)
|
2382
|
+
return handleFromPtr_Ptr_api_SourceLocation(op.Source)
|
2383
|
+
}
|
2384
|
+
|
2385
|
+
//export api_VMError_Source_Set
|
2386
|
+
func api_VMError_Source_Set(handle CGoHandle, val CGoHandle) {
|
2387
|
+
op := ptrFromHandle_api_VMError(handle)
|
2388
|
+
op.Source = ptrFromHandle_Ptr_api_SourceLocation(val)
|
2389
|
+
}
|
2390
|
+
|
2391
|
+
//export api_VMError_Duration_Get
|
2392
|
+
func api_VMError_Duration_Get(handle CGoHandle) C.longlong {
|
2393
|
+
op := ptrFromHandle_api_VMError(handle)
|
2394
|
+
return C.longlong(int64(op.Duration))
|
2395
|
+
}
|
2396
|
+
|
2397
|
+
//export api_VMError_Duration_Set
|
2398
|
+
func api_VMError_Duration_Set(handle CGoHandle, val C.longlong) {
|
2399
|
+
op := ptrFromHandle_api_VMError(handle)
|
2400
|
+
op.Duration = time.Duration(int64(val))
|
2401
|
+
}
|
2402
|
+
|
2403
|
+
//export api_VMError_Error
|
2404
|
+
func api_VMError_Error(_handle CGoHandle) *C.char {
|
2405
|
+
_saved_thread := C.PyEval_SaveThread()
|
2406
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2407
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2408
|
+
if __err != nil {
|
2409
|
+
return C.CString("")
|
2410
|
+
}
|
2411
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Error())
|
2412
|
+
|
2413
|
+
}
|
2414
|
+
|
2415
|
+
//export api_VMError_Unwrap
|
2416
|
+
func api_VMError_Unwrap(_handle CGoHandle) *C.char {
|
2417
|
+
_saved_thread := C.PyEval_SaveThread()
|
2418
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2419
|
+
if __err != nil {
|
2420
|
+
return errorGoToPy(nil)
|
2421
|
+
}
|
2422
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Unwrap()
|
2423
|
+
|
2424
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2425
|
+
if __err != nil {
|
2426
|
+
estr := C.CString(__err.Error())
|
2427
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2428
|
+
return estr
|
2429
|
+
}
|
2430
|
+
return C.CString("")
|
2431
|
+
}
|
2432
|
+
|
2433
|
+
//export api_VMError_IsCompileError
|
2434
|
+
func api_VMError_IsCompileError(_handle CGoHandle) C.char {
|
2435
|
+
_saved_thread := C.PyEval_SaveThread()
|
2436
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2437
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2438
|
+
if __err != nil {
|
2439
|
+
return boolGoToPy(false)
|
2440
|
+
}
|
2441
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsCompileError())
|
2442
|
+
|
2443
|
+
}
|
2444
|
+
|
2445
|
+
//export api_VMError_IsRuntimeError
|
2446
|
+
func api_VMError_IsRuntimeError(_handle CGoHandle) C.char {
|
2447
|
+
_saved_thread := C.PyEval_SaveThread()
|
2448
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2449
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2450
|
+
if __err != nil {
|
2451
|
+
return boolGoToPy(false)
|
2452
|
+
}
|
2453
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsRuntimeError())
|
2454
|
+
|
2455
|
+
}
|
2456
|
+
|
2457
|
+
//export api_VMError_IsTimeoutError
|
2458
|
+
func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
|
2459
|
+
_saved_thread := C.PyEval_SaveThread()
|
2460
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2461
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2462
|
+
if __err != nil {
|
2463
|
+
return boolGoToPy(false)
|
2464
|
+
}
|
2465
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsTimeoutError())
|
2466
|
+
|
2467
|
+
}
|
2468
|
+
|
2469
|
+
//export api_VMError_IsConversionError
|
2470
|
+
func api_VMError_IsConversionError(_handle CGoHandle) C.char {
|
2471
|
+
_saved_thread := C.PyEval_SaveThread()
|
2472
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2473
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2474
|
+
if __err != nil {
|
2475
|
+
return boolGoToPy(false)
|
2476
|
+
}
|
2477
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
|
2478
|
+
|
2479
|
+
}
|
2480
|
+
|
2481
|
+
//export api_VMError_IsConfigError
|
2482
|
+
func api_VMError_IsConfigError(_handle CGoHandle) C.char {
|
2483
|
+
_saved_thread := C.PyEval_SaveThread()
|
2484
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2485
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2486
|
+
if __err != nil {
|
2487
|
+
return boolGoToPy(false)
|
2488
|
+
}
|
2489
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
|
2490
|
+
|
2491
|
+
}
|
2492
|
+
|
2493
|
+
// --- wrapping struct: api.ClassDefinition ---
|
2494
|
+
//
|
2495
|
+
//export api_ClassDefinition_CTor
|
2496
|
+
func api_ClassDefinition_CTor() CGoHandle {
|
2497
|
+
return CGoHandle(handleFromPtr_api_ClassDefinition(&api.ClassDefinition{}))
|
2498
|
+
}
|
2499
|
+
|
2500
|
+
//export api_ClassDefinition_Name_Get
|
2501
|
+
func api_ClassDefinition_Name_Get(handle CGoHandle) *C.char {
|
2502
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2503
|
+
return C.CString(op.Name)
|
2504
|
+
}
|
2505
|
+
|
2506
|
+
//export api_ClassDefinition_Name_Set
|
2507
|
+
func api_ClassDefinition_Name_Set(handle CGoHandle, val *C.char) {
|
2508
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2509
|
+
op.Name = C.GoString(val)
|
2510
|
+
}
|
2511
|
+
|
2512
|
+
//export api_ClassDefinition_PublicVariables_Get
|
2513
|
+
func api_ClassDefinition_PublicVariables_Get(handle CGoHandle) CGoHandle {
|
2514
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2515
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PublicVariables)
|
2516
|
+
}
|
2517
|
+
|
2518
|
+
//export api_ClassDefinition_PublicVariables_Set
|
2519
|
+
func api_ClassDefinition_PublicVariables_Set(handle CGoHandle, val CGoHandle) {
|
2520
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2521
|
+
op.PublicVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2522
|
+
}
|
2523
|
+
|
2524
|
+
//export api_ClassDefinition_PrivateVariables_Get
|
2525
|
+
func api_ClassDefinition_PrivateVariables_Get(handle CGoHandle) CGoHandle {
|
2526
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2527
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PrivateVariables)
|
2528
|
+
}
|
2529
|
+
|
2530
|
+
//export api_ClassDefinition_PrivateVariables_Set
|
2531
|
+
func api_ClassDefinition_PrivateVariables_Set(handle CGoHandle, val CGoHandle) {
|
2532
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2533
|
+
op.PrivateVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2534
|
+
}
|
2535
|
+
|
2536
|
+
//export api_ClassDefinition_SharedVariables_Get
|
2537
|
+
func api_ClassDefinition_SharedVariables_Get(handle CGoHandle) CGoHandle {
|
2538
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2539
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.SharedVariables)
|
2540
|
+
}
|
2541
|
+
|
2542
|
+
//export api_ClassDefinition_SharedVariables_Set
|
2543
|
+
func api_ClassDefinition_SharedVariables_Set(handle CGoHandle, val CGoHandle) {
|
2544
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2545
|
+
op.SharedVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2546
|
+
}
|
2547
|
+
|
2548
|
+
//export api_ClassDefinition_PublicMethods_Get
|
2549
|
+
func api_ClassDefinition_PublicMethods_Get(handle CGoHandle) CGoHandle {
|
2550
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2551
|
+
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PublicMethods)
|
2552
|
+
}
|
2553
|
+
|
2554
|
+
//export api_ClassDefinition_PublicMethods_Set
|
2555
|
+
func api_ClassDefinition_PublicMethods_Set(handle CGoHandle, val CGoHandle) {
|
2556
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2557
|
+
op.PublicMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
2558
|
+
}
|
2559
|
+
|
2560
|
+
//export api_ClassDefinition_PrivateMethods_Get
|
2561
|
+
func api_ClassDefinition_PrivateMethods_Get(handle CGoHandle) CGoHandle {
|
2562
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2563
|
+
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PrivateMethods)
|
2564
|
+
}
|
2565
|
+
|
2566
|
+
//export api_ClassDefinition_PrivateMethods_Set
|
2567
|
+
func api_ClassDefinition_PrivateMethods_Set(handle CGoHandle, val CGoHandle) {
|
2568
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2569
|
+
op.PrivateMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
2570
|
+
}
|
2571
|
+
|
2572
|
+
//export api_ClassDefinition_UnknownFunctionHandler_Get
|
2573
|
+
func api_ClassDefinition_UnknownFunctionHandler_Get(handle CGoHandle) CGoHandle {
|
2574
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2575
|
+
return handleFromPtr_Ptr_api_UnknownFunctionHandler(op.UnknownFunctionHandler)
|
2576
|
+
}
|
2577
|
+
|
2578
|
+
//export api_ClassDefinition_UnknownFunctionHandler_Set
|
2579
|
+
func api_ClassDefinition_UnknownFunctionHandler_Set(handle CGoHandle, val CGoHandle) {
|
2580
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2581
|
+
op.UnknownFunctionHandler = ptrFromHandle_Ptr_api_UnknownFunctionHandler(val)
|
2582
|
+
}
|
2583
|
+
|
2584
|
+
// --- wrapping struct: api.ExecutionResult ---
|
2585
|
+
//
|
2586
|
+
//export api_ExecutionResult_CTor
|
2587
|
+
func api_ExecutionResult_CTor() CGoHandle {
|
2588
|
+
return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
|
2589
|
+
}
|
2590
|
+
|
2591
|
+
//export api_ExecutionResult_Value_Get
|
2592
|
+
func api_ExecutionResult_Value_Get(handle CGoHandle) CGoHandle {
|
2593
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2594
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
2595
|
+
}
|
2596
|
+
|
2597
|
+
//export api_ExecutionResult_Value_Set
|
2598
|
+
func api_ExecutionResult_Value_Set(handle CGoHandle, val CGoHandle) {
|
2599
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2600
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
2601
|
+
}
|
2602
|
+
|
2603
|
+
//export api_ExecutionResult_RawValue_Get
|
2604
|
+
func api_ExecutionResult_RawValue_Get(handle CGoHandle) CGoHandle {
|
2605
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2606
|
+
return handleFromPtr_environment_Value(op.RawValue)
|
2607
|
+
}
|
2608
|
+
|
2609
|
+
//export api_ExecutionResult_RawValue_Set
|
2610
|
+
func api_ExecutionResult_RawValue_Set(handle CGoHandle, val CGoHandle) {
|
2611
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2612
|
+
op.RawValue = ptrFromHandle_environment_Value(val)
|
2613
|
+
}
|
2614
|
+
|
2615
|
+
//export api_ExecutionResult_Output_Get
|
2616
|
+
func api_ExecutionResult_Output_Get(handle CGoHandle) *C.char {
|
2617
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2618
|
+
return C.CString(op.Output)
|
2619
|
+
}
|
2620
|
+
|
2621
|
+
//export api_ExecutionResult_Output_Set
|
2622
|
+
func api_ExecutionResult_Output_Set(handle CGoHandle, val *C.char) {
|
2623
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2624
|
+
op.Output = C.GoString(val)
|
2625
|
+
}
|
2626
|
+
|
2627
|
+
// --- wrapping struct: api.GoValue ---
|
2628
|
+
//
|
2629
|
+
//export api_GoValue_CTor
|
2630
|
+
func api_GoValue_CTor() CGoHandle {
|
2631
|
+
return CGoHandle(handleFromPtr_api_GoValue(&api.GoValue{}))
|
2632
|
+
}
|
2633
|
+
|
2634
|
+
//export api_GoValue_ID
|
2635
|
+
func api_GoValue_ID(_handle CGoHandle) *C.char {
|
2636
|
+
_saved_thread := C.PyEval_SaveThread()
|
2637
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2638
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2639
|
+
if __err != nil {
|
2640
|
+
return C.CString("")
|
2641
|
+
}
|
2642
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).ID())
|
2643
|
+
|
2644
|
+
}
|
2645
|
+
|
2646
|
+
//export api_GoValue_MarshalJSON
|
2647
|
+
func api_GoValue_MarshalJSON(_handle CGoHandle) CGoHandle {
|
2648
|
+
_saved_thread := C.PyEval_SaveThread()
|
2649
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2650
|
+
if __err != nil {
|
2651
|
+
return handleFromPtr_Slice_byte(nil)
|
2652
|
+
}
|
2653
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).MarshalJSON()
|
2654
|
+
|
2655
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2656
|
+
if __err != nil {
|
2657
|
+
estr := C.CString(__err.Error())
|
2658
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2659
|
+
C.free(unsafe.Pointer(estr))
|
2660
|
+
return handleFromPtr_Slice_byte(nil)
|
2661
|
+
}
|
2662
|
+
return handleFromPtr_Slice_byte(&cret)
|
2663
|
+
}
|
2664
|
+
|
2665
|
+
//export api_GoValue_Type
|
2666
|
+
func api_GoValue_Type(_handle CGoHandle) *C.char {
|
2667
|
+
_saved_thread := C.PyEval_SaveThread()
|
2668
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2669
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2670
|
+
if __err != nil {
|
2671
|
+
return C.CString("")
|
2672
|
+
}
|
2673
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Type())
|
2674
|
+
|
2675
|
+
}
|
2676
|
+
|
2677
|
+
//export api_GoValue_Int
|
2678
|
+
func api_GoValue_Int(_handle CGoHandle) C.longlong {
|
2679
|
+
_saved_thread := C.PyEval_SaveThread()
|
2680
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2681
|
+
if __err != nil {
|
2682
|
+
return C.longlong(0)
|
2683
|
+
}
|
2684
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Int()
|
2685
|
+
|
2686
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2687
|
+
if __err != nil {
|
2688
|
+
estr := C.CString(__err.Error())
|
2689
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2690
|
+
C.free(unsafe.Pointer(estr))
|
2691
|
+
return C.longlong(0)
|
2692
|
+
}
|
2693
|
+
return C.longlong(cret)
|
2694
|
+
}
|
2695
|
+
|
2696
|
+
//export api_GoValue_Float
|
2697
|
+
func api_GoValue_Float(_handle CGoHandle) C.double {
|
2698
|
+
_saved_thread := C.PyEval_SaveThread()
|
2699
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2700
|
+
if __err != nil {
|
2701
|
+
return C.double(0)
|
2702
|
+
}
|
2703
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Float()
|
2704
|
+
|
2705
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2706
|
+
if __err != nil {
|
2707
|
+
estr := C.CString(__err.Error())
|
2708
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2709
|
+
C.free(unsafe.Pointer(estr))
|
2710
|
+
return C.double(0)
|
2711
|
+
}
|
2712
|
+
return C.double(cret)
|
2713
|
+
}
|
2714
|
+
|
2715
|
+
//export api_GoValue_String
|
2716
|
+
func api_GoValue_String(_handle CGoHandle) *C.char {
|
2717
|
+
_saved_thread := C.PyEval_SaveThread()
|
2718
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2719
|
+
if __err != nil {
|
2720
|
+
return C.CString("")
|
2721
|
+
}
|
2722
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).String()
|
2723
|
+
|
2724
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2725
|
+
if __err != nil {
|
2726
|
+
estr := C.CString(__err.Error())
|
2727
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2728
|
+
C.free(unsafe.Pointer(estr))
|
2729
|
+
return C.CString("")
|
2730
|
+
}
|
2731
|
+
return C.CString(cret)
|
2732
|
+
}
|
2733
|
+
|
2734
|
+
//export api_GoValue_Bool
|
2735
|
+
func api_GoValue_Bool(_handle CGoHandle) C.char {
|
2736
|
+
_saved_thread := C.PyEval_SaveThread()
|
2737
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2738
|
+
if __err != nil {
|
2739
|
+
return boolGoToPy(false)
|
2740
|
+
}
|
2741
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Bool()
|
2742
|
+
|
2743
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2744
|
+
if __err != nil {
|
2745
|
+
estr := C.CString(__err.Error())
|
2746
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2747
|
+
C.free(unsafe.Pointer(estr))
|
2748
|
+
return boolGoToPy(false)
|
2749
|
+
}
|
2750
|
+
return boolGoToPy(cret)
|
2751
|
+
}
|
2752
|
+
|
2753
|
+
//export api_GoValue_Slice
|
2754
|
+
func api_GoValue_Slice(_handle CGoHandle) CGoHandle {
|
2755
|
+
_saved_thread := C.PyEval_SaveThread()
|
2756
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2757
|
+
if __err != nil {
|
2758
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
2759
|
+
}
|
2760
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Slice()
|
2761
|
+
|
2762
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2763
|
+
if __err != nil {
|
2764
|
+
estr := C.CString(__err.Error())
|
2765
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2766
|
+
C.free(unsafe.Pointer(estr))
|
2767
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
2768
|
+
}
|
2769
|
+
return handleFromPtr_Slice_api_GoValue(&cret)
|
2770
|
+
}
|
2771
|
+
|
2772
|
+
//export api_GoValue_Map
|
2773
|
+
func api_GoValue_Map(_handle CGoHandle) CGoHandle {
|
2774
|
+
_saved_thread := C.PyEval_SaveThread()
|
2775
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2776
|
+
if __err != nil {
|
2777
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
2778
|
+
}
|
2779
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Map()
|
2780
|
+
|
2781
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2782
|
+
if __err != nil {
|
2783
|
+
estr := C.CString(__err.Error())
|
2784
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2785
|
+
C.free(unsafe.Pointer(estr))
|
2786
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
2787
|
+
}
|
2788
|
+
return handleFromPtr_Map_string_api_GoValue(&cret)
|
2789
|
+
}
|
2790
|
+
|
2791
|
+
//export api_GoValue_Object
|
2792
|
+
func api_GoValue_Object(_handle CGoHandle) CGoHandle {
|
2793
|
+
_saved_thread := C.PyEval_SaveThread()
|
2794
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2795
|
+
if __err != nil {
|
2796
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
2797
|
+
}
|
2798
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Object()
|
2799
|
+
|
2800
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2801
|
+
if __err != nil {
|
2802
|
+
estr := C.CString(__err.Error())
|
2803
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2804
|
+
C.free(unsafe.Pointer(estr))
|
2805
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
2806
|
+
}
|
2807
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
2808
|
+
}
|
2809
|
+
|
2810
|
+
// --- wrapping struct: api.UnknownFunctionHandler ---
|
2811
|
+
//
|
2812
|
+
//export api_UnknownFunctionHandler_CTor
|
2813
|
+
func api_UnknownFunctionHandler_CTor() CGoHandle {
|
2814
|
+
return CGoHandle(handleFromPtr_api_UnknownFunctionHandler(&api.UnknownFunctionHandler{}))
|
2815
|
+
}
|
2816
|
+
|
2817
|
+
// --- wrapping struct: api.VM ---
|
2818
|
+
//
|
2819
|
+
//export api_VM_CTor
|
2820
|
+
func api_VM_CTor() CGoHandle {
|
2821
|
+
return CGoHandle(handleFromPtr_api_VM(&api.VM{}))
|
2822
|
+
}
|
2823
|
+
|
2824
|
+
//export api_VM_GetCompatibilityShim
|
2825
|
+
func api_VM_GetCompatibilityShim(_handle CGoHandle) CGoHandle {
|
2826
|
+
_saved_thread := C.PyEval_SaveThread()
|
2827
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2828
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2829
|
+
if __err != nil {
|
2830
|
+
return handleFromPtr_Ptr_api_VMCompatibilityShim(nil)
|
2831
|
+
}
|
2832
|
+
return handleFromPtr_Ptr_api_VMCompatibilityShim(gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).GetCompatibilityShim())
|
2833
|
+
|
2834
|
+
}
|
2835
|
+
|
2836
|
+
//export api_VM_Execute
|
2837
|
+
func api_VM_Execute(_handle CGoHandle, code *C.char) CGoHandle {
|
2838
|
+
_saved_thread := C.PyEval_SaveThread()
|
2839
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2840
|
+
if __err != nil {
|
2841
|
+
return handleFromPtr_Ptr_api_ExecutionResult(nil)
|
2842
|
+
}
|
2843
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).Execute(C.GoString(code))
|
2844
|
+
|
2845
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2846
|
+
if __err != nil {
|
2847
|
+
estr := C.CString(__err.Error())
|
2848
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2849
|
+
C.free(unsafe.Pointer(estr))
|
2850
|
+
return handleFromPtr_Ptr_api_ExecutionResult(nil)
|
2851
|
+
}
|
2852
|
+
return handleFromPtr_Ptr_api_ExecutionResult(cret)
|
2853
|
+
}
|
2854
|
+
|
2855
|
+
//export api_VM_ExecuteWithContext
|
2856
|
+
func api_VM_ExecuteWithContext(_handle CGoHandle, ctx CGoHandle, code *C.char) CGoHandle {
|
2857
|
+
_saved_thread := C.PyEval_SaveThread()
|
2858
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2859
|
+
if __err != nil {
|
2860
|
+
return handleFromPtr_Ptr_api_ExecutionResult(nil)
|
2861
|
+
}
|
2862
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).ExecuteWithContext(ptrFromHandle_context_Context(ctx), C.GoString(code))
|
2863
|
+
|
2864
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2865
|
+
if __err != nil {
|
2866
|
+
estr := C.CString(__err.Error())
|
2867
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2868
|
+
C.free(unsafe.Pointer(estr))
|
2869
|
+
return handleFromPtr_Ptr_api_ExecutionResult(nil)
|
2870
|
+
}
|
2871
|
+
return handleFromPtr_Ptr_api_ExecutionResult(cret)
|
2872
|
+
}
|
2873
|
+
|
2874
|
+
//export api_VM_NewObjectInstance
|
2875
|
+
func api_VM_NewObjectInstance(_handle CGoHandle, className *C.char) CGoHandle {
|
2876
|
+
_saved_thread := C.PyEval_SaveThread()
|
2877
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2878
|
+
if __err != nil {
|
2879
|
+
return handleFromPtr_api_GoValue(nil)
|
2880
|
+
}
|
2881
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).NewObjectInstance(C.GoString(className))
|
2882
|
+
|
2883
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2884
|
+
if __err != nil {
|
2885
|
+
estr := C.CString(__err.Error())
|
2886
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2887
|
+
C.free(unsafe.Pointer(estr))
|
2888
|
+
return handleFromPtr_api_GoValue(nil)
|
2889
|
+
}
|
2890
|
+
return handleFromPtr_api_GoValue(&cret)
|
2891
|
+
}
|
2892
|
+
|
2893
|
+
//export api_VM_Call
|
2894
|
+
func api_VM_Call(_handle CGoHandle, functionName *C.char, args CGoHandle) CGoHandle {
|
2895
|
+
_saved_thread := C.PyEval_SaveThread()
|
2896
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2897
|
+
if __err != nil {
|
2898
|
+
return handleFromPtr_api_GoValue(nil)
|
2899
|
+
}
|
2900
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).Call(C.GoString(functionName), deptrFromHandle_Slice_api_GoValue(args))
|
2901
|
+
|
2902
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2903
|
+
if __err != nil {
|
2904
|
+
estr := C.CString(__err.Error())
|
2905
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2906
|
+
C.free(unsafe.Pointer(estr))
|
2907
|
+
return handleFromPtr_api_GoValue(nil)
|
2908
|
+
}
|
2909
|
+
return handleFromPtr_api_GoValue(&cret)
|
2910
|
+
}
|
2911
|
+
|
2912
|
+
//export api_VM_CallMethod
|
2913
|
+
func api_VM_CallMethod(_handle CGoHandle, object CGoHandle, methodName *C.char, args CGoHandle) CGoHandle {
|
2914
|
+
_saved_thread := C.PyEval_SaveThread()
|
2915
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2916
|
+
if __err != nil {
|
2917
|
+
return handleFromPtr_api_GoValue(nil)
|
2918
|
+
}
|
2919
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).CallMethod(*ptrFromHandle_api_GoValue(object), C.GoString(methodName), deptrFromHandle_Slice_api_GoValue(args))
|
2920
|
+
|
2921
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2922
|
+
if __err != nil {
|
2923
|
+
estr := C.CString(__err.Error())
|
2924
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2925
|
+
C.free(unsafe.Pointer(estr))
|
2926
|
+
return handleFromPtr_api_GoValue(nil)
|
2927
|
+
}
|
2928
|
+
return handleFromPtr_api_GoValue(&cret)
|
2929
|
+
}
|
2930
|
+
|
2931
|
+
//export api_VM_DefineVariable
|
2932
|
+
func api_VM_DefineVariable(_handle CGoHandle, name *C.char, value CGoHandle, constant C.char) *C.char {
|
2933
|
+
_saved_thread := C.PyEval_SaveThread()
|
2934
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2935
|
+
if __err != nil {
|
2936
|
+
return errorGoToPy(nil)
|
2937
|
+
}
|
2938
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).DefineVariable(C.GoString(name), *ptrFromHandle_api_GoValue(value), boolPyToGo(constant))
|
2939
|
+
|
2940
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2941
|
+
if __err != nil {
|
2942
|
+
estr := C.CString(__err.Error())
|
2943
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2944
|
+
return estr
|
2945
|
+
}
|
2946
|
+
return C.CString("")
|
2947
|
+
}
|
2948
|
+
|
2949
|
+
//export api_VM_SetVariable
|
2950
|
+
func api_VM_SetVariable(_handle CGoHandle, variableName *C.char, value CGoHandle) *C.char {
|
2951
|
+
_saved_thread := C.PyEval_SaveThread()
|
2952
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2953
|
+
if __err != nil {
|
2954
|
+
return errorGoToPy(nil)
|
2955
|
+
}
|
2956
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).SetVariable(C.GoString(variableName), *ptrFromHandle_api_GoValue(value))
|
2957
|
+
|
2958
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2959
|
+
if __err != nil {
|
2960
|
+
estr := C.CString(__err.Error())
|
2961
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2962
|
+
return estr
|
2963
|
+
}
|
2964
|
+
return C.CString("")
|
2965
|
+
}
|
2966
|
+
|
2967
|
+
//export api_VM_GetVariable
|
2968
|
+
func api_VM_GetVariable(_handle CGoHandle, variableName *C.char) CGoHandle {
|
2969
|
+
_saved_thread := C.PyEval_SaveThread()
|
2970
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2971
|
+
if __err != nil {
|
2972
|
+
return handleFromPtr_api_GoValue(nil)
|
2973
|
+
}
|
2974
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).GetVariable(C.GoString(variableName))
|
2975
|
+
|
2976
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2977
|
+
if __err != nil {
|
2978
|
+
estr := C.CString(__err.Error())
|
2979
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2980
|
+
C.free(unsafe.Pointer(estr))
|
2981
|
+
return handleFromPtr_api_GoValue(nil)
|
2982
|
+
}
|
2983
|
+
return handleFromPtr_api_GoValue(&cret)
|
2984
|
+
}
|
2985
|
+
|
2986
|
+
//export api_VM_DefineClass
|
2987
|
+
func api_VM_DefineClass(_handle CGoHandle, classDef CGoHandle) *C.char {
|
2988
|
+
_saved_thread := C.PyEval_SaveThread()
|
2989
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2990
|
+
if __err != nil {
|
2991
|
+
return errorGoToPy(nil)
|
2992
|
+
}
|
2993
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).DefineClass(ptrFromHandle_Ptr_api_ClassDefinition(classDef))
|
2994
|
+
|
2995
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2996
|
+
if __err != nil {
|
2997
|
+
estr := C.CString(__err.Error())
|
2998
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2999
|
+
return estr
|
3000
|
+
}
|
3001
|
+
return C.CString("")
|
3002
|
+
}
|
3003
|
+
|
3004
|
+
// --- wrapping struct: api.VMCompatibilityShim ---
|
3005
|
+
//
|
3006
|
+
//export api_VMCompatibilityShim_CTor
|
3007
|
+
func api_VMCompatibilityShim_CTor() CGoHandle {
|
3008
|
+
return CGoHandle(handleFromPtr_api_VMCompatibilityShim(&api.VMCompatibilityShim{}))
|
3009
|
+
}
|
3010
|
+
|
3011
|
+
//export api_VMCompatibilityShim_DefineFunction
|
3012
|
+
func api_VMCompatibilityShim_DefineFunction(_handle CGoHandle, id *C.char, name *C.char, argc C.longlong, function *C.PyObject) *C.char {
|
3013
|
+
_fun_arg := function
|
3014
|
+
_saved_thread := C.PyEval_SaveThread()
|
3015
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3016
|
+
if __err != nil {
|
3017
|
+
return errorGoToPy(nil)
|
3018
|
+
}
|
3019
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).DefineFunction(C.GoString(id), C.GoString(name), int(argc), func(id string, jsonArgs string) string {
|
3020
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
3021
|
+
return C.GoString(nil)
|
3022
|
+
}
|
3023
|
+
_gstate := C.PyGILState_Ensure()
|
3024
|
+
_fcargs := C.PyTuple_New(2)
|
3025
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
3026
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
3027
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
3028
|
+
C.gopy_decref(_fcargs)
|
3029
|
+
C.gopy_err_handle()
|
3030
|
+
C.PyGILState_Release(_gstate)
|
3031
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
3032
|
+
})
|
3033
|
+
|
3034
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3035
|
+
if __err != nil {
|
3036
|
+
estr := C.CString(__err.Error())
|
3037
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3038
|
+
return estr
|
3039
|
+
}
|
3040
|
+
return C.CString("")
|
3041
|
+
}
|
3042
|
+
|
3043
|
+
//export api_VMCompatibilityShim_BuildNewClassVariableWithGetter
|
3044
|
+
func api_VMCompatibilityShim_BuildNewClassVariableWithGetter(_handle CGoHandle, variable CGoHandle, getterID *C.char, getter *C.PyObject) CGoHandle {
|
3045
|
+
_fun_arg := getter
|
3046
|
+
_saved_thread := C.PyEval_SaveThread()
|
3047
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3048
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3049
|
+
if __err != nil {
|
3050
|
+
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
3051
|
+
}
|
3052
|
+
return handleFromPtr_Ptr_api_ClassVariable(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewClassVariableWithGetter(ptrFromHandle_Ptr_api_ClassVariable(variable), C.GoString(getterID), func(id string, jsonArgs string) string {
|
3053
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
3054
|
+
return C.GoString(nil)
|
3055
|
+
}
|
3056
|
+
_gstate := C.PyGILState_Ensure()
|
3057
|
+
_fcargs := C.PyTuple_New(2)
|
3058
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
3059
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
3060
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
3061
|
+
C.gopy_decref(_fcargs)
|
3062
|
+
C.gopy_err_handle()
|
3063
|
+
C.PyGILState_Release(_gstate)
|
3064
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
3065
|
+
}))
|
3066
|
+
|
3067
|
+
}
|
3068
|
+
|
3069
|
+
//export api_VMCompatibilityShim_BuildNewClassVariableWithSetter
|
3070
|
+
func api_VMCompatibilityShim_BuildNewClassVariableWithSetter(_handle CGoHandle, variable CGoHandle, setterID *C.char, setter *C.PyObject) CGoHandle {
|
3071
|
+
_fun_arg := setter
|
3072
|
+
_saved_thread := C.PyEval_SaveThread()
|
3073
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3074
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3075
|
+
if __err != nil {
|
3076
|
+
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
3077
|
+
}
|
3078
|
+
return handleFromPtr_Ptr_api_ClassVariable(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewClassVariableWithSetter(ptrFromHandle_Ptr_api_ClassVariable(variable), C.GoString(setterID), func(id string, jsonArgs string) string {
|
3079
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
3080
|
+
return C.GoString(nil)
|
3081
|
+
}
|
3082
|
+
_gstate := C.PyGILState_Ensure()
|
3083
|
+
_fcargs := C.PyTuple_New(2)
|
3084
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
3085
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
3086
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
3087
|
+
C.gopy_decref(_fcargs)
|
3088
|
+
C.gopy_err_handle()
|
3089
|
+
C.PyGILState_Release(_gstate)
|
3090
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
3091
|
+
}))
|
3092
|
+
|
3093
|
+
}
|
3094
|
+
|
3095
|
+
//export api_VMCompatibilityShim_BuildNewClassMethod
|
3096
|
+
func api_VMCompatibilityShim_BuildNewClassMethod(_handle CGoHandle, method CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
3097
|
+
_fun_arg := function
|
3098
|
+
_saved_thread := C.PyEval_SaveThread()
|
3099
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3100
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3101
|
+
if __err != nil {
|
3102
|
+
return handleFromPtr_Ptr_api_ClassMethod(nil)
|
3103
|
+
}
|
3104
|
+
return handleFromPtr_Ptr_api_ClassMethod(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewClassMethod(ptrFromHandle_Ptr_api_ClassMethod(method), C.GoString(id), func(id string, jsonArgs string) string {
|
3105
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
3106
|
+
return C.GoString(nil)
|
3107
|
+
}
|
3108
|
+
_gstate := C.PyGILState_Ensure()
|
3109
|
+
_fcargs := C.PyTuple_New(2)
|
3110
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
3111
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
3112
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
3113
|
+
C.gopy_decref(_fcargs)
|
3114
|
+
C.gopy_err_handle()
|
3115
|
+
C.PyGILState_Release(_gstate)
|
3116
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
3117
|
+
}))
|
3118
|
+
|
3119
|
+
}
|
3120
|
+
|
3121
|
+
//export api_VMCompatibilityShim_BuildNewUnknownFunctionHandler
|
3122
|
+
func api_VMCompatibilityShim_BuildNewUnknownFunctionHandler(_handle CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
3123
|
+
_fun_arg := function
|
3124
|
+
_saved_thread := C.PyEval_SaveThread()
|
3125
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3126
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3127
|
+
if __err != nil {
|
3128
|
+
return handleFromPtr_api_UnknownFunctionHandler(nil)
|
3129
|
+
}
|
3130
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewUnknownFunctionHandler(C.GoString(id), func(id string, jsonArgs string) string {
|
3131
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
3132
|
+
return C.GoString(nil)
|
3133
|
+
}
|
3134
|
+
_gstate := C.PyGILState_Ensure()
|
3135
|
+
_fcargs := C.PyTuple_New(2)
|
3136
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
3137
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
3138
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
3139
|
+
C.gopy_decref(_fcargs)
|
3140
|
+
C.gopy_err_handle()
|
3141
|
+
C.PyGILState_Release(_gstate)
|
3142
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
3143
|
+
})
|
3144
|
+
|
3145
|
+
return handleFromPtr_api_UnknownFunctionHandler(&cret)
|
3146
|
+
}
|
3147
|
+
|
3148
|
+
//export api_VMCompatibilityShim_IsClassDefined
|
3149
|
+
func api_VMCompatibilityShim_IsClassDefined(_handle CGoHandle, name *C.char) C.char {
|
3150
|
+
_saved_thread := C.PyEval_SaveThread()
|
3151
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3152
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3153
|
+
if __err != nil {
|
3154
|
+
return boolGoToPy(false)
|
3155
|
+
}
|
3156
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).IsClassDefined(C.GoString(name)))
|
3157
|
+
|
3158
|
+
}
|
3159
|
+
|
3160
|
+
//export api_VMCompatibilityShim_LookupObject
|
3161
|
+
func api_VMCompatibilityShim_LookupObject(_handle CGoHandle, id *C.char) CGoHandle {
|
3162
|
+
_saved_thread := C.PyEval_SaveThread()
|
3163
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3164
|
+
if __err != nil {
|
3165
|
+
return handleFromPtr_api_GoValue(nil)
|
3166
|
+
}
|
3167
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).LookupObject(C.GoString(id))
|
3168
|
+
|
3169
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3170
|
+
if __err != nil {
|
3171
|
+
estr := C.CString(__err.Error())
|
3172
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3173
|
+
C.free(unsafe.Pointer(estr))
|
3174
|
+
return handleFromPtr_api_GoValue(nil)
|
3175
|
+
}
|
3176
|
+
return handleFromPtr_api_GoValue(&cret)
|
3177
|
+
}
|
3178
|
+
|
3179
|
+
//export api_VMCompatibilityShim_GetObjectMRO
|
3180
|
+
func api_VMCompatibilityShim_GetObjectMRO(_handle CGoHandle, id *C.char) CGoHandle {
|
3181
|
+
_saved_thread := C.PyEval_SaveThread()
|
3182
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3183
|
+
if __err != nil {
|
3184
|
+
return handleFromPtr_Slice_string(nil)
|
3185
|
+
}
|
3186
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectMRO(C.GoString(id))
|
3187
|
+
|
3188
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3189
|
+
if __err != nil {
|
3190
|
+
estr := C.CString(__err.Error())
|
3191
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3192
|
+
C.free(unsafe.Pointer(estr))
|
3193
|
+
return handleFromPtr_Slice_string(nil)
|
3194
|
+
}
|
3195
|
+
return handleFromPtr_Slice_string(&cret)
|
3196
|
+
}
|
3197
|
+
|
3198
|
+
//export api_VMCompatibilityShim_GetObjectImmediateFunctions
|
3199
|
+
func api_VMCompatibilityShim_GetObjectImmediateFunctions(_handle CGoHandle, id *C.char) CGoHandle {
|
3200
|
+
_saved_thread := C.PyEval_SaveThread()
|
3201
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3202
|
+
if __err != nil {
|
3203
|
+
return handleFromPtr_Slice_string(nil)
|
3204
|
+
}
|
3205
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateFunctions(C.GoString(id))
|
3206
|
+
|
3207
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3208
|
+
if __err != nil {
|
3209
|
+
estr := C.CString(__err.Error())
|
3210
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3211
|
+
C.free(unsafe.Pointer(estr))
|
3212
|
+
return handleFromPtr_Slice_string(nil)
|
3213
|
+
}
|
3214
|
+
return handleFromPtr_Slice_string(&cret)
|
3215
|
+
}
|
3216
|
+
|
3217
|
+
//export api_VMCompatibilityShim_GetObjectImmediateVariables
|
3218
|
+
func api_VMCompatibilityShim_GetObjectImmediateVariables(_handle CGoHandle, id *C.char) CGoHandle {
|
3219
|
+
_saved_thread := C.PyEval_SaveThread()
|
3220
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3221
|
+
if __err != nil {
|
3222
|
+
return handleFromPtr_Slice_string(nil)
|
3223
|
+
}
|
3224
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateVariables(C.GoString(id))
|
3225
|
+
|
3226
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3227
|
+
if __err != nil {
|
3228
|
+
estr := C.CString(__err.Error())
|
3229
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3230
|
+
C.free(unsafe.Pointer(estr))
|
3231
|
+
return handleFromPtr_Slice_string(nil)
|
3232
|
+
}
|
3233
|
+
return handleFromPtr_Slice_string(&cret)
|
3234
|
+
}
|
3235
|
+
|
3236
|
+
//export api_VMCompatibilityShim_AddVariableToObject
|
3237
|
+
func api_VMCompatibilityShim_AddVariableToObject(_handle CGoHandle, id *C.char, variable CGoHandle) *C.char {
|
3238
|
+
_saved_thread := C.PyEval_SaveThread()
|
3239
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3240
|
+
if __err != nil {
|
3241
|
+
return errorGoToPy(nil)
|
3242
|
+
}
|
3243
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).AddVariableToObject(C.GoString(id), ptrFromHandle_Ptr_api_ClassVariable(variable))
|
3244
|
+
|
3245
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3246
|
+
if __err != nil {
|
3247
|
+
estr := C.CString(__err.Error())
|
3248
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3249
|
+
return estr
|
3250
|
+
}
|
3251
|
+
return C.CString("")
|
3252
|
+
}
|
3253
|
+
|
3254
|
+
// --- wrapping struct: api.ClassMethod ---
|
3255
|
+
//
|
3256
|
+
//export api_ClassMethod_CTor
|
3257
|
+
func api_ClassMethod_CTor() CGoHandle {
|
3258
|
+
return CGoHandle(handleFromPtr_api_ClassMethod(&api.ClassMethod{}))
|
3259
|
+
}
|
3260
|
+
|
3261
|
+
//export api_ClassMethod_Name_Get
|
3262
|
+
func api_ClassMethod_Name_Get(handle CGoHandle) *C.char {
|
3263
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3264
|
+
return C.CString(op.Name)
|
3265
|
+
}
|
3266
|
+
|
3267
|
+
//export api_ClassMethod_Name_Set
|
3268
|
+
func api_ClassMethod_Name_Set(handle CGoHandle, val *C.char) {
|
3269
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3270
|
+
op.Name = C.GoString(val)
|
3271
|
+
}
|
3272
|
+
|
3273
|
+
//export api_ClassMethod_Argc_Get
|
3274
|
+
func api_ClassMethod_Argc_Get(handle CGoHandle) C.longlong {
|
3275
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3276
|
+
return C.longlong(op.Argc)
|
3277
|
+
}
|
3278
|
+
|
3279
|
+
//export api_ClassMethod_Argc_Set
|
3280
|
+
func api_ClassMethod_Argc_Set(handle CGoHandle, val C.longlong) {
|
3281
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3282
|
+
op.Argc = int(val)
|
3283
|
+
}
|
3284
|
+
|
3285
|
+
// --- wrapping struct: api.ClassVariable ---
|
3286
|
+
//
|
3287
|
+
//export api_ClassVariable_CTor
|
3288
|
+
func api_ClassVariable_CTor() CGoHandle {
|
3289
|
+
return CGoHandle(handleFromPtr_api_ClassVariable(&api.ClassVariable{}))
|
3290
|
+
}
|
3291
|
+
|
3292
|
+
//export api_ClassVariable_Name_Get
|
3293
|
+
func api_ClassVariable_Name_Get(handle CGoHandle) *C.char {
|
3294
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3295
|
+
return C.CString(op.Name)
|
3296
|
+
}
|
3297
|
+
|
3298
|
+
//export api_ClassVariable_Name_Set
|
3299
|
+
func api_ClassVariable_Name_Set(handle CGoHandle, val *C.char) {
|
3300
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3301
|
+
op.Name = C.GoString(val)
|
3302
|
+
}
|
3303
|
+
|
3304
|
+
//export api_ClassVariable_Value_Get
|
3305
|
+
func api_ClassVariable_Value_Get(handle CGoHandle) CGoHandle {
|
3306
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3307
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
3308
|
+
}
|
3309
|
+
|
3310
|
+
//export api_ClassVariable_Value_Set
|
3311
|
+
func api_ClassVariable_Value_Set(handle CGoHandle, val CGoHandle) {
|
3312
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3313
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
3314
|
+
}
|
3315
|
+
|
3316
|
+
//export api_ClassVariable_Locked_Get
|
3317
|
+
func api_ClassVariable_Locked_Get(handle CGoHandle) C.char {
|
3318
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3319
|
+
return boolGoToPy(op.Locked)
|
3320
|
+
}
|
3321
|
+
|
3322
|
+
//export api_ClassVariable_Locked_Set
|
3323
|
+
func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
|
3324
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3325
|
+
op.Locked = boolPyToGo(val)
|
3326
|
+
}
|
3327
|
+
|
3328
|
+
// --- wrapping struct: api.SourceLocation ---
|
3329
|
+
//
|
3330
|
+
//export api_SourceLocation_CTor
|
3331
|
+
func api_SourceLocation_CTor() CGoHandle {
|
3332
|
+
return CGoHandle(handleFromPtr_api_SourceLocation(&api.SourceLocation{}))
|
3333
|
+
}
|
3334
|
+
|
3335
|
+
//export api_SourceLocation_Filename_Get
|
3336
|
+
func api_SourceLocation_Filename_Get(handle CGoHandle) *C.char {
|
3337
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3338
|
+
return C.CString(op.Filename)
|
3339
|
+
}
|
3340
|
+
|
3341
|
+
//export api_SourceLocation_Filename_Set
|
3342
|
+
func api_SourceLocation_Filename_Set(handle CGoHandle, val *C.char) {
|
3343
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3344
|
+
op.Filename = C.GoString(val)
|
3345
|
+
}
|
3346
|
+
|
3347
|
+
//export api_SourceLocation_Line_Get
|
3348
|
+
func api_SourceLocation_Line_Get(handle CGoHandle) C.longlong {
|
3349
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3350
|
+
return C.longlong(op.Line)
|
3351
|
+
}
|
3352
|
+
|
3353
|
+
//export api_SourceLocation_Line_Set
|
3354
|
+
func api_SourceLocation_Line_Set(handle CGoHandle, val C.longlong) {
|
3355
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3356
|
+
op.Line = int(val)
|
3357
|
+
}
|
3358
|
+
|
3359
|
+
//export api_SourceLocation_Column_Get
|
3360
|
+
func api_SourceLocation_Column_Get(handle CGoHandle) C.longlong {
|
3361
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3362
|
+
return C.longlong(op.Column)
|
3363
|
+
}
|
3364
|
+
|
3365
|
+
//export api_SourceLocation_Column_Set
|
3366
|
+
func api_SourceLocation_Column_Set(handle CGoHandle, val C.longlong) {
|
3367
|
+
op := ptrFromHandle_api_SourceLocation(handle)
|
3368
|
+
op.Column = int(val)
|
3369
|
+
}
|
3370
|
+
|
3371
|
+
// ---- Slices ---
|
3372
|
+
|
3373
|
+
// ---- Maps ---
|
3374
|
+
|
3375
|
+
// ---- Constructors ---
|
3376
|
+
|
3377
|
+
//export api_DefaultConfig
|
3378
|
+
func api_DefaultConfig() CGoHandle {
|
3379
|
+
_saved_thread := C.PyEval_SaveThread()
|
3380
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3381
|
+
return handleFromPtr_Ptr_api_VMConfig(api.DefaultConfig())
|
3382
|
+
|
3383
|
+
}
|
3384
|
+
|
3385
|
+
//export api_NewCompileError
|
3386
|
+
func api_NewCompileError(message *C.char, source CGoHandle) CGoHandle {
|
3387
|
+
_saved_thread := C.PyEval_SaveThread()
|
3388
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3389
|
+
return handleFromPtr_Ptr_api_VMError(api.NewCompileError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3390
|
+
|
3391
|
+
}
|
3392
|
+
|
3393
|
+
//export api_NewConfigError
|
3394
|
+
func api_NewConfigError(message *C.char, wrapped *C.char) CGoHandle {
|
3395
|
+
_saved_thread := C.PyEval_SaveThread()
|
3396
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3397
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConfigError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3398
|
+
|
3399
|
+
}
|
3400
|
+
|
3401
|
+
//export api_NewTimeoutError
|
3402
|
+
func api_NewTimeoutError(duration C.longlong) CGoHandle {
|
3403
|
+
_saved_thread := C.PyEval_SaveThread()
|
3404
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3405
|
+
return handleFromPtr_Ptr_api_VMError(api.NewTimeoutError(time.Duration(int64(duration))))
|
3406
|
+
|
3407
|
+
}
|
3408
|
+
|
3409
|
+
//export api_NewConversionError
|
3410
|
+
func api_NewConversionError(message *C.char, wrapped *C.char) CGoHandle {
|
3411
|
+
_saved_thread := C.PyEval_SaveThread()
|
3412
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3413
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConversionError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3414
|
+
|
3415
|
+
}
|
3416
|
+
|
3417
|
+
//export api_NewRuntimeError
|
3418
|
+
func api_NewRuntimeError(message *C.char, source CGoHandle) CGoHandle {
|
3419
|
+
_saved_thread := C.PyEval_SaveThread()
|
3420
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3421
|
+
return handleFromPtr_Ptr_api_VMError(api.NewRuntimeError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3422
|
+
|
3423
|
+
}
|
3424
|
+
|
3425
|
+
//export api_NewClassDefinition
|
3426
|
+
func api_NewClassDefinition() CGoHandle {
|
3427
|
+
_saved_thread := C.PyEval_SaveThread()
|
3428
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3429
|
+
return handleFromPtr_Ptr_api_ClassDefinition(api.NewClassDefinition())
|
3430
|
+
|
3431
|
+
}
|
3432
|
+
|
3433
|
+
//export api_WrapAny
|
3434
|
+
func api_WrapAny(value *C.char) CGoHandle {
|
3435
|
+
_saved_thread := C.PyEval_SaveThread()
|
3436
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3437
|
+
cret := api.WrapAny(C.GoString(value))
|
3438
|
+
|
3439
|
+
return handleFromPtr_api_GoValue(&cret)
|
3440
|
+
}
|
3441
|
+
|
3442
|
+
//export api_ToGoValue
|
3443
|
+
func api_ToGoValue(val CGoHandle) CGoHandle {
|
3444
|
+
_saved_thread := C.PyEval_SaveThread()
|
3445
|
+
cret, __err := api.ToGoValue(ptrFromHandle_environment_Value(val))
|
3446
|
+
|
3447
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3448
|
+
if __err != nil {
|
3449
|
+
estr := C.CString(__err.Error())
|
3450
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3451
|
+
C.free(unsafe.Pointer(estr))
|
3452
|
+
return handleFromPtr_api_GoValue(nil)
|
3453
|
+
}
|
3454
|
+
return handleFromPtr_api_GoValue(&cret)
|
3455
|
+
}
|
3456
|
+
|
3457
|
+
//export api_WrapBool
|
3458
|
+
func api_WrapBool(value C.char) CGoHandle {
|
3459
|
+
_saved_thread := C.PyEval_SaveThread()
|
3460
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3461
|
+
cret := api.WrapBool(boolPyToGo(value))
|
3462
|
+
|
3463
|
+
return handleFromPtr_api_GoValue(&cret)
|
3464
|
+
}
|
3465
|
+
|
3466
|
+
//export api_WrapFloat
|
3467
|
+
func api_WrapFloat(value C.double) CGoHandle {
|
3468
|
+
_saved_thread := C.PyEval_SaveThread()
|
3469
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3470
|
+
cret := api.WrapFloat(float64(value))
|
3471
|
+
|
3472
|
+
return handleFromPtr_api_GoValue(&cret)
|
3473
|
+
}
|
3474
|
+
|
3475
|
+
//export api_WrapString
|
3476
|
+
func api_WrapString(value *C.char) CGoHandle {
|
3477
|
+
_saved_thread := C.PyEval_SaveThread()
|
3478
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3479
|
+
cret := api.WrapString(C.GoString(value))
|
3480
|
+
|
3481
|
+
return handleFromPtr_api_GoValue(&cret)
|
3482
|
+
}
|
3483
|
+
|
3484
|
+
//export api_WrapInt
|
3485
|
+
func api_WrapInt(value C.longlong) CGoHandle {
|
3486
|
+
_saved_thread := C.PyEval_SaveThread()
|
3487
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3488
|
+
cret := api.WrapInt(int64(value))
|
3489
|
+
|
3490
|
+
return handleFromPtr_api_GoValue(&cret)
|
3491
|
+
}
|
3492
|
+
|
3493
|
+
//export api_WrapObject
|
3494
|
+
func api_WrapObject(value CGoHandle) CGoHandle {
|
3495
|
+
_saved_thread := C.PyEval_SaveThread()
|
3496
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3497
|
+
cret := api.WrapObject(ptrFromHandle_Ptr_environment_ObjectInstance(value))
|
3498
|
+
|
3499
|
+
return handleFromPtr_api_GoValue(&cret)
|
3500
|
+
}
|
3501
|
+
|
3502
|
+
//export api_NewVM
|
3503
|
+
func api_NewVM(config CGoHandle) CGoHandle {
|
3504
|
+
_saved_thread := C.PyEval_SaveThread()
|
3505
|
+
cret, __err := api.NewVM(ptrFromHandle_Ptr_api_VMConfig(config))
|
3506
|
+
|
3507
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3508
|
+
if __err != nil {
|
3509
|
+
estr := C.CString(__err.Error())
|
3510
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3511
|
+
C.free(unsafe.Pointer(estr))
|
3512
|
+
return handleFromPtr_Ptr_api_VM(nil)
|
3513
|
+
}
|
3514
|
+
return handleFromPtr_Ptr_api_VM(cret)
|
3515
|
+
}
|
3516
|
+
|
3517
|
+
// ---- Functions ---
|
3518
|
+
|
3519
|
+
//export api_LookupObject
|
3520
|
+
func api_LookupObject(id *C.char) CGoHandle {
|
3521
|
+
_saved_thread := C.PyEval_SaveThread()
|
3522
|
+
cret, __err := api.LookupObject(C.GoString(id))
|
3523
|
+
|
3524
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3525
|
+
if __err != nil {
|
3526
|
+
estr := C.CString(__err.Error())
|
3527
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3528
|
+
C.free(unsafe.Pointer(estr))
|
3529
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3530
|
+
}
|
3531
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
3532
|
+
}
|
3533
|
+
|
3534
|
+
//export api_ConvertArguments
|
3535
|
+
func api_ConvertArguments(args CGoHandle) CGoHandle {
|
3536
|
+
_saved_thread := C.PyEval_SaveThread()
|
3537
|
+
cret, __err := api.ConvertArguments(deptrFromHandle_Slice_api_GoValue(args))
|
3538
|
+
|
3539
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3540
|
+
if __err != nil {
|
3541
|
+
estr := C.CString(__err.Error())
|
3542
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3543
|
+
C.free(unsafe.Pointer(estr))
|
3544
|
+
return handleFromPtr_Slice_environment_Value(nil)
|
3545
|
+
}
|
3546
|
+
return handleFromPtr_Slice_environment_Value(&cret)
|
3547
|
+
}
|
3548
|
+
|
3549
|
+
//export api_FromGoValue
|
3550
|
+
func api_FromGoValue(val CGoHandle) CGoHandle {
|
3551
|
+
_saved_thread := C.PyEval_SaveThread()
|
3552
|
+
cret, __err := api.FromGoValue(*ptrFromHandle_api_GoValue(val))
|
3553
|
+
|
3554
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3555
|
+
if __err != nil {
|
3556
|
+
estr := C.CString(__err.Error())
|
3557
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3558
|
+
C.free(unsafe.Pointer(estr))
|
3559
|
+
return handleFromPtr_environment_Value(nil)
|
3560
|
+
}
|
3561
|
+
return handleFromPtr_environment_Value(cret)
|
3562
|
+
}
|