objective-lol 0.0.1__cp313-cp313-win_amd64.whl → 0.0.2__cp313-cp313-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/_api.cp313-win_amd64.h +94 -94
- objective_lol/_api.cp313-win_amd64.pyd +0 -0
- objective_lol/api.c +1003 -1003
- objective_lol/api.go +719 -719
- objective_lol/api.py +542 -542
- objective_lol/api_go.h +94 -94
- objective_lol/build.py +77 -77
- objective_lol/go.py +1 -1
- {objective_lol-0.0.1.dist-info → objective_lol-0.0.2.dist-info}/METADATA +17 -1
- objective_lol-0.0.2.dist-info/RECORD +14 -0
- objective_lol-0.0.1.dist-info/RECORD +0 -14
- {objective_lol-0.0.1.dist-info → objective_lol-0.0.2.dist-info}/WHEEL +0 -0
- {objective_lol-0.0.1.dist-info → objective_lol-0.0.2.dist-info}/top_level.txt +0 -0
objective_lol/api.go
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/*
|
2
2
|
cgo stubs for package api.
|
3
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-313\objective_lol --vm D:\a\objective-lol\objective-lol\python\.toolchain\python\python-3.13.
|
4
|
+
gopy.exe build -no-make -dynamic-link=True -symbols=False -output D:\a\objective-lol\objective-lol\python\build\lib.win-amd64-cpython-313\objective_lol --vm D:\a\objective-lol\objective-lol\python\.toolchain\python\python-3.13.7\bin\python.exe .
|
5
5
|
*/
|
6
6
|
|
7
7
|
package main
|
8
8
|
|
9
9
|
/*
|
10
10
|
|
11
|
-
#cgo CFLAGS: "-ID:/a/objective-lol/objective-lol/python/.toolchain/python/python-3.13.
|
11
|
+
#cgo CFLAGS: "-ID:/a/objective-lol/objective-lol/python/.toolchain/python/python-3.13.7/include" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
12
12
|
#cgo LDFLAGS:
|
13
13
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
@@ -2272,311 +2272,596 @@ func Map_string_api_GoValue_keys(handle CGoHandle) CGoHandle {
|
|
2272
2272
|
|
2273
2273
|
// ---- Structs ---
|
2274
2274
|
|
2275
|
-
// --- wrapping struct: api.
|
2275
|
+
// --- wrapping struct: api.UnknownFunctionHandler ---
|
2276
2276
|
//
|
2277
|
-
//export
|
2278
|
-
func
|
2279
|
-
return CGoHandle(
|
2277
|
+
//export api_UnknownFunctionHandler_CTor
|
2278
|
+
func api_UnknownFunctionHandler_CTor() CGoHandle {
|
2279
|
+
return CGoHandle(handleFromPtr_api_UnknownFunctionHandler(&api.UnknownFunctionHandler{}))
|
2280
2280
|
}
|
2281
2281
|
|
2282
|
-
//
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2282
|
+
// --- wrapping struct: api.VMCompatibilityShim ---
|
2283
|
+
//
|
2284
|
+
//export api_VMCompatibilityShim_CTor
|
2285
|
+
func api_VMCompatibilityShim_CTor() CGoHandle {
|
2286
|
+
return CGoHandle(handleFromPtr_api_VMCompatibilityShim(&api.VMCompatibilityShim{}))
|
2286
2287
|
}
|
2287
2288
|
|
2288
|
-
//export
|
2289
|
-
func
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2289
|
+
//export api_VMCompatibilityShim_DefineFunction
|
2290
|
+
func api_VMCompatibilityShim_DefineFunction(_handle CGoHandle, id *C.char, name *C.char, argc C.longlong, function *C.PyObject) *C.char {
|
2291
|
+
_fun_arg := function
|
2292
|
+
_saved_thread := C.PyEval_SaveThread()
|
2293
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2294
|
+
if __err != nil {
|
2295
|
+
return errorGoToPy(nil)
|
2296
|
+
}
|
2297
|
+
__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 {
|
2298
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
2299
|
+
return C.GoString(nil)
|
2300
|
+
}
|
2301
|
+
_gstate := C.PyGILState_Ensure()
|
2302
|
+
_fcargs := C.PyTuple_New(2)
|
2303
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2304
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2305
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2306
|
+
C.gopy_decref(_fcargs)
|
2307
|
+
C.gopy_err_handle()
|
2308
|
+
C.PyGILState_Release(_gstate)
|
2309
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
2310
|
+
})
|
2293
2311
|
|
2294
|
-
|
2295
|
-
|
2296
|
-
|
2297
|
-
|
2312
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2313
|
+
if __err != nil {
|
2314
|
+
estr := C.CString(__err.Error())
|
2315
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2316
|
+
return estr
|
2317
|
+
}
|
2318
|
+
return C.CString("")
|
2298
2319
|
}
|
2299
2320
|
|
2300
|
-
//export
|
2301
|
-
func
|
2302
|
-
|
2303
|
-
|
2321
|
+
//export api_VMCompatibilityShim_BuildNewClassVariableWithGetter
|
2322
|
+
func api_VMCompatibilityShim_BuildNewClassVariableWithGetter(_handle CGoHandle, variable CGoHandle, getterID *C.char, getter *C.PyObject) CGoHandle {
|
2323
|
+
_fun_arg := getter
|
2324
|
+
_saved_thread := C.PyEval_SaveThread()
|
2325
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2326
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2327
|
+
if __err != nil {
|
2328
|
+
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
2329
|
+
}
|
2330
|
+
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 {
|
2331
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
2332
|
+
return C.GoString(nil)
|
2333
|
+
}
|
2334
|
+
_gstate := C.PyGILState_Ensure()
|
2335
|
+
_fcargs := C.PyTuple_New(2)
|
2336
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2337
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2338
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2339
|
+
C.gopy_decref(_fcargs)
|
2340
|
+
C.gopy_err_handle()
|
2341
|
+
C.PyGILState_Release(_gstate)
|
2342
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
2343
|
+
}))
|
2344
|
+
|
2304
2345
|
}
|
2305
2346
|
|
2306
|
-
//
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2347
|
+
//export api_VMCompatibilityShim_BuildNewClassVariableWithSetter
|
2348
|
+
func api_VMCompatibilityShim_BuildNewClassVariableWithSetter(_handle CGoHandle, variable CGoHandle, setterID *C.char, setter *C.PyObject) CGoHandle {
|
2349
|
+
_fun_arg := setter
|
2350
|
+
_saved_thread := C.PyEval_SaveThread()
|
2351
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2352
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2353
|
+
if __err != nil {
|
2354
|
+
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
2355
|
+
}
|
2356
|
+
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 {
|
2357
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
2358
|
+
return C.GoString(nil)
|
2359
|
+
}
|
2360
|
+
_gstate := C.PyGILState_Ensure()
|
2361
|
+
_fcargs := C.PyTuple_New(2)
|
2362
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2363
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2364
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2365
|
+
C.gopy_decref(_fcargs)
|
2366
|
+
C.gopy_err_handle()
|
2367
|
+
C.PyGILState_Release(_gstate)
|
2368
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
2369
|
+
}))
|
2370
|
+
|
2311
2371
|
}
|
2312
2372
|
|
2313
|
-
//export
|
2314
|
-
func
|
2315
|
-
|
2316
|
-
|
2373
|
+
//export api_VMCompatibilityShim_BuildNewClassMethod
|
2374
|
+
func api_VMCompatibilityShim_BuildNewClassMethod(_handle CGoHandle, method CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
2375
|
+
_fun_arg := function
|
2376
|
+
_saved_thread := C.PyEval_SaveThread()
|
2377
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2378
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2379
|
+
if __err != nil {
|
2380
|
+
return handleFromPtr_Ptr_api_ClassMethod(nil)
|
2381
|
+
}
|
2382
|
+
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 {
|
2383
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
2384
|
+
return C.GoString(nil)
|
2385
|
+
}
|
2386
|
+
_gstate := C.PyGILState_Ensure()
|
2387
|
+
_fcargs := C.PyTuple_New(2)
|
2388
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2389
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2390
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2391
|
+
C.gopy_decref(_fcargs)
|
2392
|
+
C.gopy_err_handle()
|
2393
|
+
C.PyGILState_Release(_gstate)
|
2394
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
2395
|
+
}))
|
2396
|
+
|
2317
2397
|
}
|
2318
2398
|
|
2319
|
-
//export
|
2320
|
-
func
|
2321
|
-
|
2322
|
-
|
2399
|
+
//export api_VMCompatibilityShim_BuildNewUnknownFunctionHandler
|
2400
|
+
func api_VMCompatibilityShim_BuildNewUnknownFunctionHandler(_handle CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
2401
|
+
_fun_arg := function
|
2402
|
+
_saved_thread := C.PyEval_SaveThread()
|
2403
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2404
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2405
|
+
if __err != nil {
|
2406
|
+
return handleFromPtr_api_UnknownFunctionHandler(nil)
|
2407
|
+
}
|
2408
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewUnknownFunctionHandler(C.GoString(id), func(id string, jsonArgs string) string {
|
2409
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
2410
|
+
return C.GoString(nil)
|
2411
|
+
}
|
2412
|
+
_gstate := C.PyGILState_Ensure()
|
2413
|
+
_fcargs := C.PyTuple_New(2)
|
2414
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2415
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2416
|
+
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2417
|
+
C.gopy_decref(_fcargs)
|
2418
|
+
C.gopy_err_handle()
|
2419
|
+
C.PyGILState_Release(_gstate)
|
2420
|
+
return C.GoString(C.PyBytes_AsString(_fcret))
|
2421
|
+
})
|
2422
|
+
|
2423
|
+
return handleFromPtr_api_UnknownFunctionHandler(&cret)
|
2323
2424
|
}
|
2324
2425
|
|
2325
|
-
//export
|
2326
|
-
func
|
2327
|
-
|
2328
|
-
|
2426
|
+
//export api_VMCompatibilityShim_IsClassDefined
|
2427
|
+
func api_VMCompatibilityShim_IsClassDefined(_handle CGoHandle, name *C.char) C.char {
|
2428
|
+
_saved_thread := C.PyEval_SaveThread()
|
2429
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2430
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2431
|
+
if __err != nil {
|
2432
|
+
return boolGoToPy(false)
|
2433
|
+
}
|
2434
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).IsClassDefined(C.GoString(name)))
|
2435
|
+
|
2329
2436
|
}
|
2330
2437
|
|
2331
|
-
//export
|
2332
|
-
func
|
2333
|
-
|
2334
|
-
|
2438
|
+
//export api_VMCompatibilityShim_LookupObject
|
2439
|
+
func api_VMCompatibilityShim_LookupObject(_handle CGoHandle, id *C.char) CGoHandle {
|
2440
|
+
_saved_thread := C.PyEval_SaveThread()
|
2441
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2442
|
+
if __err != nil {
|
2443
|
+
return handleFromPtr_api_GoValue(nil)
|
2444
|
+
}
|
2445
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).LookupObject(C.GoString(id))
|
2446
|
+
|
2447
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2448
|
+
if __err != nil {
|
2449
|
+
estr := C.CString(__err.Error())
|
2450
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2451
|
+
C.free(unsafe.Pointer(estr))
|
2452
|
+
return handleFromPtr_api_GoValue(nil)
|
2453
|
+
}
|
2454
|
+
return handleFromPtr_api_GoValue(&cret)
|
2335
2455
|
}
|
2336
2456
|
|
2337
|
-
//export
|
2338
|
-
func
|
2339
|
-
|
2340
|
-
|
2457
|
+
//export api_VMCompatibilityShim_GetObjectMRO
|
2458
|
+
func api_VMCompatibilityShim_GetObjectMRO(_handle CGoHandle, id *C.char) CGoHandle {
|
2459
|
+
_saved_thread := C.PyEval_SaveThread()
|
2460
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2461
|
+
if __err != nil {
|
2462
|
+
return handleFromPtr_Slice_string(nil)
|
2463
|
+
}
|
2464
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectMRO(C.GoString(id))
|
2465
|
+
|
2466
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2467
|
+
if __err != nil {
|
2468
|
+
estr := C.CString(__err.Error())
|
2469
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2470
|
+
C.free(unsafe.Pointer(estr))
|
2471
|
+
return handleFromPtr_Slice_string(nil)
|
2472
|
+
}
|
2473
|
+
return handleFromPtr_Slice_string(&cret)
|
2341
2474
|
}
|
2342
2475
|
|
2343
|
-
//export
|
2344
|
-
func
|
2345
|
-
|
2346
|
-
|
2476
|
+
//export api_VMCompatibilityShim_GetObjectImmediateFunctions
|
2477
|
+
func api_VMCompatibilityShim_GetObjectImmediateFunctions(_handle CGoHandle, id *C.char) CGoHandle {
|
2478
|
+
_saved_thread := C.PyEval_SaveThread()
|
2479
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2480
|
+
if __err != nil {
|
2481
|
+
return handleFromPtr_Slice_string(nil)
|
2482
|
+
}
|
2483
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateFunctions(C.GoString(id))
|
2484
|
+
|
2485
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2486
|
+
if __err != nil {
|
2487
|
+
estr := C.CString(__err.Error())
|
2488
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2489
|
+
C.free(unsafe.Pointer(estr))
|
2490
|
+
return handleFromPtr_Slice_string(nil)
|
2491
|
+
}
|
2492
|
+
return handleFromPtr_Slice_string(&cret)
|
2347
2493
|
}
|
2348
2494
|
|
2349
|
-
//
|
2350
|
-
|
2351
|
-
|
2352
|
-
|
2353
|
-
|
2495
|
+
//export api_VMCompatibilityShim_GetObjectImmediateVariables
|
2496
|
+
func api_VMCompatibilityShim_GetObjectImmediateVariables(_handle CGoHandle, id *C.char) CGoHandle {
|
2497
|
+
_saved_thread := C.PyEval_SaveThread()
|
2498
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2499
|
+
if __err != nil {
|
2500
|
+
return handleFromPtr_Slice_string(nil)
|
2501
|
+
}
|
2502
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateVariables(C.GoString(id))
|
2503
|
+
|
2504
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2505
|
+
if __err != nil {
|
2506
|
+
estr := C.CString(__err.Error())
|
2507
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2508
|
+
C.free(unsafe.Pointer(estr))
|
2509
|
+
return handleFromPtr_Slice_string(nil)
|
2510
|
+
}
|
2511
|
+
return handleFromPtr_Slice_string(&cret)
|
2354
2512
|
}
|
2355
2513
|
|
2356
|
-
//export
|
2357
|
-
func
|
2514
|
+
//export api_VMCompatibilityShim_AddVariableToObject
|
2515
|
+
func api_VMCompatibilityShim_AddVariableToObject(_handle CGoHandle, id *C.char, variable CGoHandle) *C.char {
|
2358
2516
|
_saved_thread := C.PyEval_SaveThread()
|
2359
|
-
|
2360
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2517
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2361
2518
|
if __err != nil {
|
2362
|
-
return
|
2519
|
+
return errorGoToPy(nil)
|
2363
2520
|
}
|
2364
|
-
|
2521
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).AddVariableToObject(C.GoString(id), ptrFromHandle_Ptr_api_ClassVariable(variable))
|
2365
2522
|
|
2523
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2524
|
+
if __err != nil {
|
2525
|
+
estr := C.CString(__err.Error())
|
2526
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2527
|
+
return estr
|
2528
|
+
}
|
2529
|
+
return C.CString("")
|
2366
2530
|
}
|
2367
2531
|
|
2368
|
-
//
|
2369
|
-
|
2532
|
+
// --- wrapping struct: api.VMConfig ---
|
2533
|
+
//
|
2534
|
+
//export api_VMConfig_CTor
|
2535
|
+
func api_VMConfig_CTor() CGoHandle {
|
2536
|
+
return CGoHandle(handleFromPtr_api_VMConfig(&api.VMConfig{}))
|
2537
|
+
}
|
2538
|
+
|
2539
|
+
//export api_VMConfig_Stdout_Get
|
2540
|
+
func api_VMConfig_Stdout_Get(handle CGoHandle) CGoHandle {
|
2541
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2542
|
+
return handleFromPtr_io_Writer(op.Stdout)
|
2543
|
+
}
|
2544
|
+
|
2545
|
+
//export api_VMConfig_Stdout_Set
|
2546
|
+
func api_VMConfig_Stdout_Set(handle CGoHandle, val CGoHandle) {
|
2547
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2548
|
+
op.Stdout = ptrFromHandle_io_Writer(val)
|
2549
|
+
}
|
2550
|
+
|
2551
|
+
//export api_VMConfig_Stdin_Get
|
2552
|
+
func api_VMConfig_Stdin_Get(handle CGoHandle) CGoHandle {
|
2553
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2554
|
+
return handleFromPtr_io_Reader(op.Stdin)
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
//export api_VMConfig_Stdin_Set
|
2558
|
+
func api_VMConfig_Stdin_Set(handle CGoHandle, val CGoHandle) {
|
2559
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2560
|
+
op.Stdin = ptrFromHandle_io_Reader(val)
|
2561
|
+
}
|
2562
|
+
|
2563
|
+
//export api_VMConfig_Timeout_Get
|
2564
|
+
func api_VMConfig_Timeout_Get(handle CGoHandle) C.longlong {
|
2565
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2566
|
+
return C.longlong(int64(op.Timeout))
|
2567
|
+
}
|
2568
|
+
|
2569
|
+
//export api_VMConfig_Timeout_Set
|
2570
|
+
func api_VMConfig_Timeout_Set(handle CGoHandle, val C.longlong) {
|
2571
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2572
|
+
op.Timeout = time.Duration(int64(val))
|
2573
|
+
}
|
2574
|
+
|
2575
|
+
//export api_VMConfig_WorkingDirectory_Get
|
2576
|
+
func api_VMConfig_WorkingDirectory_Get(handle CGoHandle) *C.char {
|
2577
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2578
|
+
return C.CString(op.WorkingDirectory)
|
2579
|
+
}
|
2580
|
+
|
2581
|
+
//export api_VMConfig_WorkingDirectory_Set
|
2582
|
+
func api_VMConfig_WorkingDirectory_Set(handle CGoHandle, val *C.char) {
|
2583
|
+
op := ptrFromHandle_api_VMConfig(handle)
|
2584
|
+
op.WorkingDirectory = C.GoString(val)
|
2585
|
+
}
|
2586
|
+
|
2587
|
+
//export api_VMConfig_Validate
|
2588
|
+
func api_VMConfig_Validate(_handle CGoHandle) *C.char {
|
2370
2589
|
_saved_thread := C.PyEval_SaveThread()
|
2371
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2590
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMConfig")
|
2372
2591
|
if __err != nil {
|
2373
|
-
return
|
2592
|
+
return errorGoToPy(nil)
|
2374
2593
|
}
|
2375
|
-
|
2594
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMConfig{})).(*api.VMConfig).Validate()
|
2376
2595
|
|
2377
2596
|
C.PyEval_RestoreThread(_saved_thread)
|
2378
2597
|
if __err != nil {
|
2379
2598
|
estr := C.CString(__err.Error())
|
2380
2599
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2381
|
-
|
2382
|
-
return handleFromPtr_Slice_byte(nil)
|
2600
|
+
return estr
|
2383
2601
|
}
|
2384
|
-
return
|
2602
|
+
return C.CString("")
|
2603
|
+
}
|
2604
|
+
|
2605
|
+
// --- wrapping struct: api.VMError ---
|
2606
|
+
//
|
2607
|
+
//export api_VMError_CTor
|
2608
|
+
func api_VMError_CTor() CGoHandle {
|
2609
|
+
return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
|
2610
|
+
}
|
2611
|
+
|
2612
|
+
//export api_VMError_Type_Get
|
2613
|
+
func api_VMError_Type_Get(handle CGoHandle) *C.char {
|
2614
|
+
op := ptrFromHandle_api_VMError(handle)
|
2615
|
+
return C.CString(string(op.Type))
|
2616
|
+
}
|
2617
|
+
|
2618
|
+
//export api_VMError_Type_Set
|
2619
|
+
func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
|
2620
|
+
op := ptrFromHandle_api_VMError(handle)
|
2621
|
+
op.Type = api.ErrorType(C.GoString(val))
|
2622
|
+
}
|
2623
|
+
|
2624
|
+
//export api_VMError_Message_Get
|
2625
|
+
func api_VMError_Message_Get(handle CGoHandle) *C.char {
|
2626
|
+
op := ptrFromHandle_api_VMError(handle)
|
2627
|
+
return C.CString(op.Message)
|
2628
|
+
}
|
2629
|
+
|
2630
|
+
//export api_VMError_Message_Set
|
2631
|
+
func api_VMError_Message_Set(handle CGoHandle, val *C.char) {
|
2632
|
+
op := ptrFromHandle_api_VMError(handle)
|
2633
|
+
op.Message = C.GoString(val)
|
2634
|
+
}
|
2635
|
+
|
2636
|
+
//export api_VMError_Source_Get
|
2637
|
+
func api_VMError_Source_Get(handle CGoHandle) CGoHandle {
|
2638
|
+
op := ptrFromHandle_api_VMError(handle)
|
2639
|
+
return handleFromPtr_Ptr_api_SourceLocation(op.Source)
|
2640
|
+
}
|
2641
|
+
|
2642
|
+
//export api_VMError_Source_Set
|
2643
|
+
func api_VMError_Source_Set(handle CGoHandle, val CGoHandle) {
|
2644
|
+
op := ptrFromHandle_api_VMError(handle)
|
2645
|
+
op.Source = ptrFromHandle_Ptr_api_SourceLocation(val)
|
2646
|
+
}
|
2647
|
+
|
2648
|
+
//export api_VMError_Duration_Get
|
2649
|
+
func api_VMError_Duration_Get(handle CGoHandle) C.longlong {
|
2650
|
+
op := ptrFromHandle_api_VMError(handle)
|
2651
|
+
return C.longlong(int64(op.Duration))
|
2652
|
+
}
|
2653
|
+
|
2654
|
+
//export api_VMError_Duration_Set
|
2655
|
+
func api_VMError_Duration_Set(handle CGoHandle, val C.longlong) {
|
2656
|
+
op := ptrFromHandle_api_VMError(handle)
|
2657
|
+
op.Duration = time.Duration(int64(val))
|
2385
2658
|
}
|
2386
2659
|
|
2387
|
-
//export
|
2388
|
-
func
|
2660
|
+
//export api_VMError_Error
|
2661
|
+
func api_VMError_Error(_handle CGoHandle) *C.char {
|
2389
2662
|
_saved_thread := C.PyEval_SaveThread()
|
2390
2663
|
defer C.PyEval_RestoreThread(_saved_thread)
|
2391
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2664
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2392
2665
|
if __err != nil {
|
2393
2666
|
return C.CString("")
|
2394
2667
|
}
|
2395
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.
|
2668
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Error())
|
2396
2669
|
|
2397
2670
|
}
|
2398
2671
|
|
2399
|
-
//export
|
2400
|
-
func
|
2672
|
+
//export api_VMError_Unwrap
|
2673
|
+
func api_VMError_Unwrap(_handle CGoHandle) *C.char {
|
2401
2674
|
_saved_thread := C.PyEval_SaveThread()
|
2402
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2675
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2403
2676
|
if __err != nil {
|
2404
|
-
return
|
2677
|
+
return errorGoToPy(nil)
|
2405
2678
|
}
|
2406
|
-
|
2679
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Unwrap()
|
2407
2680
|
|
2408
2681
|
C.PyEval_RestoreThread(_saved_thread)
|
2409
2682
|
if __err != nil {
|
2410
2683
|
estr := C.CString(__err.Error())
|
2411
2684
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2412
|
-
|
2413
|
-
return C.longlong(0)
|
2685
|
+
return estr
|
2414
2686
|
}
|
2415
|
-
return C.
|
2687
|
+
return C.CString("")
|
2416
2688
|
}
|
2417
2689
|
|
2418
|
-
//export
|
2419
|
-
func
|
2690
|
+
//export api_VMError_IsCompileError
|
2691
|
+
func api_VMError_IsCompileError(_handle CGoHandle) C.char {
|
2420
2692
|
_saved_thread := C.PyEval_SaveThread()
|
2421
|
-
|
2693
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2694
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2422
2695
|
if __err != nil {
|
2423
|
-
return
|
2696
|
+
return boolGoToPy(false)
|
2424
2697
|
}
|
2425
|
-
|
2698
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsCompileError())
|
2426
2699
|
|
2427
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2428
|
-
if __err != nil {
|
2429
|
-
estr := C.CString(__err.Error())
|
2430
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2431
|
-
C.free(unsafe.Pointer(estr))
|
2432
|
-
return C.double(0)
|
2433
|
-
}
|
2434
|
-
return C.double(cret)
|
2435
2700
|
}
|
2436
2701
|
|
2437
|
-
//export
|
2438
|
-
func
|
2702
|
+
//export api_VMError_IsRuntimeError
|
2703
|
+
func api_VMError_IsRuntimeError(_handle CGoHandle) C.char {
|
2439
2704
|
_saved_thread := C.PyEval_SaveThread()
|
2440
|
-
|
2705
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2706
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2441
2707
|
if __err != nil {
|
2442
|
-
return
|
2708
|
+
return boolGoToPy(false)
|
2443
2709
|
}
|
2444
|
-
|
2710
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsRuntimeError())
|
2445
2711
|
|
2446
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2447
|
-
if __err != nil {
|
2448
|
-
estr := C.CString(__err.Error())
|
2449
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2450
|
-
C.free(unsafe.Pointer(estr))
|
2451
|
-
return C.CString("")
|
2452
|
-
}
|
2453
|
-
return C.CString(cret)
|
2454
2712
|
}
|
2455
2713
|
|
2456
|
-
//export
|
2457
|
-
func
|
2714
|
+
//export api_VMError_IsTimeoutError
|
2715
|
+
func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
|
2458
2716
|
_saved_thread := C.PyEval_SaveThread()
|
2459
|
-
|
2717
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2718
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2460
2719
|
if __err != nil {
|
2461
2720
|
return boolGoToPy(false)
|
2462
2721
|
}
|
2463
|
-
|
2722
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsTimeoutError())
|
2464
2723
|
|
2465
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2466
|
-
if __err != nil {
|
2467
|
-
estr := C.CString(__err.Error())
|
2468
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2469
|
-
C.free(unsafe.Pointer(estr))
|
2470
|
-
return boolGoToPy(false)
|
2471
|
-
}
|
2472
|
-
return boolGoToPy(cret)
|
2473
2724
|
}
|
2474
2725
|
|
2475
|
-
//export
|
2476
|
-
func
|
2726
|
+
//export api_VMError_IsConversionError
|
2727
|
+
func api_VMError_IsConversionError(_handle CGoHandle) C.char {
|
2477
2728
|
_saved_thread := C.PyEval_SaveThread()
|
2478
|
-
|
2729
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2730
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2479
2731
|
if __err != nil {
|
2480
|
-
return
|
2732
|
+
return boolGoToPy(false)
|
2481
2733
|
}
|
2482
|
-
|
2734
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
|
2483
2735
|
|
2484
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2485
|
-
if __err != nil {
|
2486
|
-
estr := C.CString(__err.Error())
|
2487
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2488
|
-
C.free(unsafe.Pointer(estr))
|
2489
|
-
return handleFromPtr_Slice_api_GoValue(nil)
|
2490
|
-
}
|
2491
|
-
return handleFromPtr_Slice_api_GoValue(&cret)
|
2492
2736
|
}
|
2493
2737
|
|
2494
|
-
//export
|
2495
|
-
func
|
2738
|
+
//export api_VMError_IsConfigError
|
2739
|
+
func api_VMError_IsConfigError(_handle CGoHandle) C.char {
|
2496
2740
|
_saved_thread := C.PyEval_SaveThread()
|
2497
|
-
|
2741
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
2742
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2498
2743
|
if __err != nil {
|
2499
|
-
return
|
2744
|
+
return boolGoToPy(false)
|
2500
2745
|
}
|
2501
|
-
|
2746
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
|
2502
2747
|
|
2503
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2504
|
-
if __err != nil {
|
2505
|
-
estr := C.CString(__err.Error())
|
2506
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2507
|
-
C.free(unsafe.Pointer(estr))
|
2508
|
-
return handleFromPtr_Map_string_api_GoValue(nil)
|
2509
|
-
}
|
2510
|
-
return handleFromPtr_Map_string_api_GoValue(&cret)
|
2511
2748
|
}
|
2512
2749
|
|
2513
|
-
//
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
}
|
2520
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Object()
|
2750
|
+
// --- wrapping struct: api.ClassMethod ---
|
2751
|
+
//
|
2752
|
+
//export api_ClassMethod_CTor
|
2753
|
+
func api_ClassMethod_CTor() CGoHandle {
|
2754
|
+
return CGoHandle(handleFromPtr_api_ClassMethod(&api.ClassMethod{}))
|
2755
|
+
}
|
2521
2756
|
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
C.free(unsafe.Pointer(estr))
|
2527
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
2528
|
-
}
|
2529
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
2757
|
+
//export api_ClassMethod_Name_Get
|
2758
|
+
func api_ClassMethod_Name_Get(handle CGoHandle) *C.char {
|
2759
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
2760
|
+
return C.CString(op.Name)
|
2530
2761
|
}
|
2531
2762
|
|
2532
|
-
//
|
2763
|
+
//export api_ClassMethod_Name_Set
|
2764
|
+
func api_ClassMethod_Name_Set(handle CGoHandle, val *C.char) {
|
2765
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
2766
|
+
op.Name = C.GoString(val)
|
2767
|
+
}
|
2768
|
+
|
2769
|
+
//export api_ClassMethod_Argc_Get
|
2770
|
+
func api_ClassMethod_Argc_Get(handle CGoHandle) C.longlong {
|
2771
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
2772
|
+
return C.longlong(op.Argc)
|
2773
|
+
}
|
2774
|
+
|
2775
|
+
//export api_ClassMethod_Argc_Set
|
2776
|
+
func api_ClassMethod_Argc_Set(handle CGoHandle, val C.longlong) {
|
2777
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
2778
|
+
op.Argc = int(val)
|
2779
|
+
}
|
2780
|
+
|
2781
|
+
// --- wrapping struct: api.ClassVariable ---
|
2533
2782
|
//
|
2534
|
-
//export
|
2535
|
-
func
|
2536
|
-
return CGoHandle(
|
2783
|
+
//export api_ClassVariable_CTor
|
2784
|
+
func api_ClassVariable_CTor() CGoHandle {
|
2785
|
+
return CGoHandle(handleFromPtr_api_ClassVariable(&api.ClassVariable{}))
|
2537
2786
|
}
|
2538
2787
|
|
2539
|
-
//export
|
2540
|
-
func
|
2541
|
-
op :=
|
2542
|
-
return C.CString(op.
|
2788
|
+
//export api_ClassVariable_Name_Get
|
2789
|
+
func api_ClassVariable_Name_Get(handle CGoHandle) *C.char {
|
2790
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2791
|
+
return C.CString(op.Name)
|
2543
2792
|
}
|
2544
2793
|
|
2545
|
-
//export
|
2546
|
-
func
|
2547
|
-
op :=
|
2548
|
-
op.
|
2794
|
+
//export api_ClassVariable_Name_Set
|
2795
|
+
func api_ClassVariable_Name_Set(handle CGoHandle, val *C.char) {
|
2796
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2797
|
+
op.Name = C.GoString(val)
|
2549
2798
|
}
|
2550
2799
|
|
2551
|
-
//export
|
2552
|
-
func
|
2553
|
-
op :=
|
2554
|
-
return
|
2800
|
+
//export api_ClassVariable_Value_Get
|
2801
|
+
func api_ClassVariable_Value_Get(handle CGoHandle) CGoHandle {
|
2802
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2803
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
2555
2804
|
}
|
2556
2805
|
|
2557
|
-
//export
|
2558
|
-
func
|
2559
|
-
op :=
|
2560
|
-
op.
|
2806
|
+
//export api_ClassVariable_Value_Set
|
2807
|
+
func api_ClassVariable_Value_Set(handle CGoHandle, val CGoHandle) {
|
2808
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2809
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
2561
2810
|
}
|
2562
2811
|
|
2563
|
-
//export
|
2564
|
-
func
|
2565
|
-
op :=
|
2566
|
-
return
|
2812
|
+
//export api_ClassVariable_Locked_Get
|
2813
|
+
func api_ClassVariable_Locked_Get(handle CGoHandle) C.char {
|
2814
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2815
|
+
return boolGoToPy(op.Locked)
|
2567
2816
|
}
|
2568
2817
|
|
2569
|
-
//export
|
2570
|
-
func
|
2571
|
-
op :=
|
2572
|
-
op.
|
2818
|
+
//export api_ClassVariable_Locked_Set
|
2819
|
+
func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
|
2820
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
2821
|
+
op.Locked = boolPyToGo(val)
|
2573
2822
|
}
|
2574
2823
|
|
2575
|
-
// --- wrapping struct: api.
|
2824
|
+
// --- wrapping struct: api.ExecutionResult ---
|
2576
2825
|
//
|
2577
|
-
//export
|
2578
|
-
func
|
2579
|
-
return CGoHandle(
|
2826
|
+
//export api_ExecutionResult_CTor
|
2827
|
+
func api_ExecutionResult_CTor() CGoHandle {
|
2828
|
+
return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
|
2829
|
+
}
|
2830
|
+
|
2831
|
+
//export api_ExecutionResult_Value_Get
|
2832
|
+
func api_ExecutionResult_Value_Get(handle CGoHandle) CGoHandle {
|
2833
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2834
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
2835
|
+
}
|
2836
|
+
|
2837
|
+
//export api_ExecutionResult_Value_Set
|
2838
|
+
func api_ExecutionResult_Value_Set(handle CGoHandle, val CGoHandle) {
|
2839
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2840
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
2841
|
+
}
|
2842
|
+
|
2843
|
+
//export api_ExecutionResult_RawValue_Get
|
2844
|
+
func api_ExecutionResult_RawValue_Get(handle CGoHandle) CGoHandle {
|
2845
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2846
|
+
return handleFromPtr_environment_Value(op.RawValue)
|
2847
|
+
}
|
2848
|
+
|
2849
|
+
//export api_ExecutionResult_RawValue_Set
|
2850
|
+
func api_ExecutionResult_RawValue_Set(handle CGoHandle, val CGoHandle) {
|
2851
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2852
|
+
op.RawValue = ptrFromHandle_environment_Value(val)
|
2853
|
+
}
|
2854
|
+
|
2855
|
+
//export api_ExecutionResult_Output_Get
|
2856
|
+
func api_ExecutionResult_Output_Get(handle CGoHandle) *C.char {
|
2857
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2858
|
+
return C.CString(op.Output)
|
2859
|
+
}
|
2860
|
+
|
2861
|
+
//export api_ExecutionResult_Output_Set
|
2862
|
+
func api_ExecutionResult_Output_Set(handle CGoHandle, val *C.char) {
|
2863
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
2864
|
+
op.Output = C.GoString(val)
|
2580
2865
|
}
|
2581
2866
|
|
2582
2867
|
// --- wrapping struct: api.VM ---
|
@@ -2732,280 +3017,30 @@ func api_VM_SetVariable(_handle CGoHandle, variableName *C.char, value CGoHandle
|
|
2732
3017
|
//export api_VM_GetVariable
|
2733
3018
|
func api_VM_GetVariable(_handle CGoHandle, variableName *C.char) CGoHandle {
|
2734
3019
|
_saved_thread := C.PyEval_SaveThread()
|
2735
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2736
|
-
if __err != nil {
|
2737
|
-
return handleFromPtr_api_GoValue(nil)
|
2738
|
-
}
|
2739
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).GetVariable(C.GoString(variableName))
|
2740
|
-
|
2741
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2742
|
-
if __err != nil {
|
2743
|
-
estr := C.CString(__err.Error())
|
2744
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2745
|
-
C.free(unsafe.Pointer(estr))
|
2746
|
-
return handleFromPtr_api_GoValue(nil)
|
2747
|
-
}
|
2748
|
-
return handleFromPtr_api_GoValue(&cret)
|
2749
|
-
}
|
2750
|
-
|
2751
|
-
//export api_VM_DefineClass
|
2752
|
-
func api_VM_DefineClass(_handle CGoHandle, classDef CGoHandle) *C.char {
|
2753
|
-
_saved_thread := C.PyEval_SaveThread()
|
2754
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2755
|
-
if __err != nil {
|
2756
|
-
return errorGoToPy(nil)
|
2757
|
-
}
|
2758
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).DefineClass(ptrFromHandle_Ptr_api_ClassDefinition(classDef))
|
2759
|
-
|
2760
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2761
|
-
if __err != nil {
|
2762
|
-
estr := C.CString(__err.Error())
|
2763
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2764
|
-
return estr
|
2765
|
-
}
|
2766
|
-
return C.CString("")
|
2767
|
-
}
|
2768
|
-
|
2769
|
-
// --- wrapping struct: api.VMCompatibilityShim ---
|
2770
|
-
//
|
2771
|
-
//export api_VMCompatibilityShim_CTor
|
2772
|
-
func api_VMCompatibilityShim_CTor() CGoHandle {
|
2773
|
-
return CGoHandle(handleFromPtr_api_VMCompatibilityShim(&api.VMCompatibilityShim{}))
|
2774
|
-
}
|
2775
|
-
|
2776
|
-
//export api_VMCompatibilityShim_DefineFunction
|
2777
|
-
func api_VMCompatibilityShim_DefineFunction(_handle CGoHandle, id *C.char, name *C.char, argc C.longlong, function *C.PyObject) *C.char {
|
2778
|
-
_fun_arg := function
|
2779
|
-
_saved_thread := C.PyEval_SaveThread()
|
2780
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2781
|
-
if __err != nil {
|
2782
|
-
return errorGoToPy(nil)
|
2783
|
-
}
|
2784
|
-
__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 {
|
2785
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
2786
|
-
return C.GoString(nil)
|
2787
|
-
}
|
2788
|
-
_gstate := C.PyGILState_Ensure()
|
2789
|
-
_fcargs := C.PyTuple_New(2)
|
2790
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2791
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2792
|
-
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2793
|
-
C.gopy_decref(_fcargs)
|
2794
|
-
C.gopy_err_handle()
|
2795
|
-
C.PyGILState_Release(_gstate)
|
2796
|
-
return C.GoString(C.PyBytes_AsString(_fcret))
|
2797
|
-
})
|
2798
|
-
|
2799
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2800
|
-
if __err != nil {
|
2801
|
-
estr := C.CString(__err.Error())
|
2802
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2803
|
-
return estr
|
2804
|
-
}
|
2805
|
-
return C.CString("")
|
2806
|
-
}
|
2807
|
-
|
2808
|
-
//export api_VMCompatibilityShim_BuildNewClassVariableWithGetter
|
2809
|
-
func api_VMCompatibilityShim_BuildNewClassVariableWithGetter(_handle CGoHandle, variable CGoHandle, getterID *C.char, getter *C.PyObject) CGoHandle {
|
2810
|
-
_fun_arg := getter
|
2811
|
-
_saved_thread := C.PyEval_SaveThread()
|
2812
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
2813
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2814
|
-
if __err != nil {
|
2815
|
-
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
2816
|
-
}
|
2817
|
-
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 {
|
2818
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
2819
|
-
return C.GoString(nil)
|
2820
|
-
}
|
2821
|
-
_gstate := C.PyGILState_Ensure()
|
2822
|
-
_fcargs := C.PyTuple_New(2)
|
2823
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2824
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2825
|
-
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2826
|
-
C.gopy_decref(_fcargs)
|
2827
|
-
C.gopy_err_handle()
|
2828
|
-
C.PyGILState_Release(_gstate)
|
2829
|
-
return C.GoString(C.PyBytes_AsString(_fcret))
|
2830
|
-
}))
|
2831
|
-
|
2832
|
-
}
|
2833
|
-
|
2834
|
-
//export api_VMCompatibilityShim_BuildNewClassVariableWithSetter
|
2835
|
-
func api_VMCompatibilityShim_BuildNewClassVariableWithSetter(_handle CGoHandle, variable CGoHandle, setterID *C.char, setter *C.PyObject) CGoHandle {
|
2836
|
-
_fun_arg := setter
|
2837
|
-
_saved_thread := C.PyEval_SaveThread()
|
2838
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
2839
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2840
|
-
if __err != nil {
|
2841
|
-
return handleFromPtr_Ptr_api_ClassVariable(nil)
|
2842
|
-
}
|
2843
|
-
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 {
|
2844
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
2845
|
-
return C.GoString(nil)
|
2846
|
-
}
|
2847
|
-
_gstate := C.PyGILState_Ensure()
|
2848
|
-
_fcargs := C.PyTuple_New(2)
|
2849
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2850
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2851
|
-
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2852
|
-
C.gopy_decref(_fcargs)
|
2853
|
-
C.gopy_err_handle()
|
2854
|
-
C.PyGILState_Release(_gstate)
|
2855
|
-
return C.GoString(C.PyBytes_AsString(_fcret))
|
2856
|
-
}))
|
2857
|
-
|
2858
|
-
}
|
2859
|
-
|
2860
|
-
//export api_VMCompatibilityShim_BuildNewClassMethod
|
2861
|
-
func api_VMCompatibilityShim_BuildNewClassMethod(_handle CGoHandle, method CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
2862
|
-
_fun_arg := function
|
2863
|
-
_saved_thread := C.PyEval_SaveThread()
|
2864
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
2865
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2866
|
-
if __err != nil {
|
2867
|
-
return handleFromPtr_Ptr_api_ClassMethod(nil)
|
2868
|
-
}
|
2869
|
-
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 {
|
2870
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
2871
|
-
return C.GoString(nil)
|
2872
|
-
}
|
2873
|
-
_gstate := C.PyGILState_Ensure()
|
2874
|
-
_fcargs := C.PyTuple_New(2)
|
2875
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2876
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2877
|
-
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2878
|
-
C.gopy_decref(_fcargs)
|
2879
|
-
C.gopy_err_handle()
|
2880
|
-
C.PyGILState_Release(_gstate)
|
2881
|
-
return C.GoString(C.PyBytes_AsString(_fcret))
|
2882
|
-
}))
|
2883
|
-
|
2884
|
-
}
|
2885
|
-
|
2886
|
-
//export api_VMCompatibilityShim_BuildNewUnknownFunctionHandler
|
2887
|
-
func api_VMCompatibilityShim_BuildNewUnknownFunctionHandler(_handle CGoHandle, id *C.char, function *C.PyObject) CGoHandle {
|
2888
|
-
_fun_arg := function
|
2889
|
-
_saved_thread := C.PyEval_SaveThread()
|
2890
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
2891
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2892
|
-
if __err != nil {
|
2893
|
-
return handleFromPtr_api_UnknownFunctionHandler(nil)
|
2894
|
-
}
|
2895
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).BuildNewUnknownFunctionHandler(C.GoString(id), func(id string, jsonArgs string) string {
|
2896
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
2897
|
-
return C.GoString(nil)
|
2898
|
-
}
|
2899
|
-
_gstate := C.PyGILState_Ensure()
|
2900
|
-
_fcargs := C.PyTuple_New(2)
|
2901
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_string(C.CString(id)))
|
2902
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_string(C.CString(jsonArgs)))
|
2903
|
-
_fcret := C.PyObject_CallObject(_fun_arg, _fcargs)
|
2904
|
-
C.gopy_decref(_fcargs)
|
2905
|
-
C.gopy_err_handle()
|
2906
|
-
C.PyGILState_Release(_gstate)
|
2907
|
-
return C.GoString(C.PyBytes_AsString(_fcret))
|
2908
|
-
})
|
2909
|
-
|
2910
|
-
return handleFromPtr_api_UnknownFunctionHandler(&cret)
|
2911
|
-
}
|
2912
|
-
|
2913
|
-
//export api_VMCompatibilityShim_IsClassDefined
|
2914
|
-
func api_VMCompatibilityShim_IsClassDefined(_handle CGoHandle, name *C.char) C.char {
|
2915
|
-
_saved_thread := C.PyEval_SaveThread()
|
2916
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
2917
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2918
|
-
if __err != nil {
|
2919
|
-
return boolGoToPy(false)
|
2920
|
-
}
|
2921
|
-
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).IsClassDefined(C.GoString(name)))
|
2922
|
-
|
2923
|
-
}
|
2924
|
-
|
2925
|
-
//export api_VMCompatibilityShim_LookupObject
|
2926
|
-
func api_VMCompatibilityShim_LookupObject(_handle CGoHandle, id *C.char) CGoHandle {
|
2927
|
-
_saved_thread := C.PyEval_SaveThread()
|
2928
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2929
|
-
if __err != nil {
|
2930
|
-
return handleFromPtr_api_GoValue(nil)
|
2931
|
-
}
|
2932
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).LookupObject(C.GoString(id))
|
2933
|
-
|
2934
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2935
|
-
if __err != nil {
|
2936
|
-
estr := C.CString(__err.Error())
|
2937
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2938
|
-
C.free(unsafe.Pointer(estr))
|
2939
|
-
return handleFromPtr_api_GoValue(nil)
|
2940
|
-
}
|
2941
|
-
return handleFromPtr_api_GoValue(&cret)
|
2942
|
-
}
|
2943
|
-
|
2944
|
-
//export api_VMCompatibilityShim_GetObjectMRO
|
2945
|
-
func api_VMCompatibilityShim_GetObjectMRO(_handle CGoHandle, id *C.char) CGoHandle {
|
2946
|
-
_saved_thread := C.PyEval_SaveThread()
|
2947
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2948
|
-
if __err != nil {
|
2949
|
-
return handleFromPtr_Slice_string(nil)
|
2950
|
-
}
|
2951
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectMRO(C.GoString(id))
|
2952
|
-
|
2953
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2954
|
-
if __err != nil {
|
2955
|
-
estr := C.CString(__err.Error())
|
2956
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2957
|
-
C.free(unsafe.Pointer(estr))
|
2958
|
-
return handleFromPtr_Slice_string(nil)
|
2959
|
-
}
|
2960
|
-
return handleFromPtr_Slice_string(&cret)
|
2961
|
-
}
|
2962
|
-
|
2963
|
-
//export api_VMCompatibilityShim_GetObjectImmediateFunctions
|
2964
|
-
func api_VMCompatibilityShim_GetObjectImmediateFunctions(_handle CGoHandle, id *C.char) CGoHandle {
|
2965
|
-
_saved_thread := C.PyEval_SaveThread()
|
2966
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2967
|
-
if __err != nil {
|
2968
|
-
return handleFromPtr_Slice_string(nil)
|
2969
|
-
}
|
2970
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateFunctions(C.GoString(id))
|
2971
|
-
|
2972
|
-
C.PyEval_RestoreThread(_saved_thread)
|
2973
|
-
if __err != nil {
|
2974
|
-
estr := C.CString(__err.Error())
|
2975
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2976
|
-
C.free(unsafe.Pointer(estr))
|
2977
|
-
return handleFromPtr_Slice_string(nil)
|
2978
|
-
}
|
2979
|
-
return handleFromPtr_Slice_string(&cret)
|
2980
|
-
}
|
2981
|
-
|
2982
|
-
//export api_VMCompatibilityShim_GetObjectImmediateVariables
|
2983
|
-
func api_VMCompatibilityShim_GetObjectImmediateVariables(_handle CGoHandle, id *C.char) CGoHandle {
|
2984
|
-
_saved_thread := C.PyEval_SaveThread()
|
2985
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
3020
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
2986
3021
|
if __err != nil {
|
2987
|
-
return
|
3022
|
+
return handleFromPtr_api_GoValue(nil)
|
2988
3023
|
}
|
2989
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.
|
3024
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).GetVariable(C.GoString(variableName))
|
2990
3025
|
|
2991
3026
|
C.PyEval_RestoreThread(_saved_thread)
|
2992
3027
|
if __err != nil {
|
2993
3028
|
estr := C.CString(__err.Error())
|
2994
3029
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2995
3030
|
C.free(unsafe.Pointer(estr))
|
2996
|
-
return
|
3031
|
+
return handleFromPtr_api_GoValue(nil)
|
2997
3032
|
}
|
2998
|
-
return
|
3033
|
+
return handleFromPtr_api_GoValue(&cret)
|
2999
3034
|
}
|
3000
3035
|
|
3001
|
-
//export
|
3002
|
-
func
|
3036
|
+
//export api_VM_DefineClass
|
3037
|
+
func api_VM_DefineClass(_handle CGoHandle, classDef CGoHandle) *C.char {
|
3003
3038
|
_saved_thread := C.PyEval_SaveThread()
|
3004
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3039
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VM")
|
3005
3040
|
if __err != nil {
|
3006
3041
|
return errorGoToPy(nil)
|
3007
3042
|
}
|
3008
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(api.
|
3043
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VM{})).(*api.VM).DefineClass(ptrFromHandle_Ptr_api_ClassDefinition(classDef))
|
3009
3044
|
|
3010
3045
|
C.PyEval_RestoreThread(_saved_thread)
|
3011
3046
|
if __err != nil {
|
@@ -3107,265 +3142,230 @@ func api_ClassDefinition_UnknownFunctionHandler_Set(handle CGoHandle, val CGoHan
|
|
3107
3142
|
op.UnknownFunctionHandler = ptrFromHandle_Ptr_api_UnknownFunctionHandler(val)
|
3108
3143
|
}
|
3109
3144
|
|
3110
|
-
// --- wrapping struct: api.
|
3111
|
-
//
|
3112
|
-
//export api_ClassVariable_CTor
|
3113
|
-
func api_ClassVariable_CTor() CGoHandle {
|
3114
|
-
return CGoHandle(handleFromPtr_api_ClassVariable(&api.ClassVariable{}))
|
3115
|
-
}
|
3116
|
-
|
3117
|
-
//export api_ClassVariable_Name_Get
|
3118
|
-
func api_ClassVariable_Name_Get(handle CGoHandle) *C.char {
|
3119
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3120
|
-
return C.CString(op.Name)
|
3121
|
-
}
|
3122
|
-
|
3123
|
-
//export api_ClassVariable_Name_Set
|
3124
|
-
func api_ClassVariable_Name_Set(handle CGoHandle, val *C.char) {
|
3125
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3126
|
-
op.Name = C.GoString(val)
|
3127
|
-
}
|
3128
|
-
|
3129
|
-
//export api_ClassVariable_Value_Get
|
3130
|
-
func api_ClassVariable_Value_Get(handle CGoHandle) CGoHandle {
|
3131
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3132
|
-
return handleFromPtr_api_GoValue(&op.Value)
|
3133
|
-
}
|
3134
|
-
|
3135
|
-
//export api_ClassVariable_Value_Set
|
3136
|
-
func api_ClassVariable_Value_Set(handle CGoHandle, val CGoHandle) {
|
3137
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3138
|
-
op.Value = *ptrFromHandle_api_GoValue(val)
|
3139
|
-
}
|
3140
|
-
|
3141
|
-
//export api_ClassVariable_Locked_Get
|
3142
|
-
func api_ClassVariable_Locked_Get(handle CGoHandle) C.char {
|
3143
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3144
|
-
return boolGoToPy(op.Locked)
|
3145
|
-
}
|
3146
|
-
|
3147
|
-
//export api_ClassVariable_Locked_Set
|
3148
|
-
func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
|
3149
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3150
|
-
op.Locked = boolPyToGo(val)
|
3151
|
-
}
|
3152
|
-
|
3153
|
-
// --- wrapping struct: api.VMConfig ---
|
3145
|
+
// --- wrapping struct: api.GoValue ---
|
3154
3146
|
//
|
3155
|
-
//export
|
3156
|
-
func
|
3157
|
-
return CGoHandle(
|
3158
|
-
}
|
3159
|
-
|
3160
|
-
//export api_VMConfig_Stdout_Get
|
3161
|
-
func api_VMConfig_Stdout_Get(handle CGoHandle) CGoHandle {
|
3162
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3163
|
-
return handleFromPtr_io_Writer(op.Stdout)
|
3164
|
-
}
|
3165
|
-
|
3166
|
-
//export api_VMConfig_Stdout_Set
|
3167
|
-
func api_VMConfig_Stdout_Set(handle CGoHandle, val CGoHandle) {
|
3168
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3169
|
-
op.Stdout = ptrFromHandle_io_Writer(val)
|
3170
|
-
}
|
3171
|
-
|
3172
|
-
//export api_VMConfig_Stdin_Get
|
3173
|
-
func api_VMConfig_Stdin_Get(handle CGoHandle) CGoHandle {
|
3174
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3175
|
-
return handleFromPtr_io_Reader(op.Stdin)
|
3176
|
-
}
|
3177
|
-
|
3178
|
-
//export api_VMConfig_Stdin_Set
|
3179
|
-
func api_VMConfig_Stdin_Set(handle CGoHandle, val CGoHandle) {
|
3180
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3181
|
-
op.Stdin = ptrFromHandle_io_Reader(val)
|
3182
|
-
}
|
3183
|
-
|
3184
|
-
//export api_VMConfig_Timeout_Get
|
3185
|
-
func api_VMConfig_Timeout_Get(handle CGoHandle) C.longlong {
|
3186
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3187
|
-
return C.longlong(int64(op.Timeout))
|
3188
|
-
}
|
3189
|
-
|
3190
|
-
//export api_VMConfig_Timeout_Set
|
3191
|
-
func api_VMConfig_Timeout_Set(handle CGoHandle, val C.longlong) {
|
3192
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3193
|
-
op.Timeout = time.Duration(int64(val))
|
3147
|
+
//export api_GoValue_CTor
|
3148
|
+
func api_GoValue_CTor() CGoHandle {
|
3149
|
+
return CGoHandle(handleFromPtr_api_GoValue(&api.GoValue{}))
|
3194
3150
|
}
|
3195
3151
|
|
3196
|
-
//export
|
3197
|
-
func
|
3198
|
-
|
3199
|
-
|
3200
|
-
|
3152
|
+
//export api_GoValue_ID
|
3153
|
+
func api_GoValue_ID(_handle CGoHandle) *C.char {
|
3154
|
+
_saved_thread := C.PyEval_SaveThread()
|
3155
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3156
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3157
|
+
if __err != nil {
|
3158
|
+
return C.CString("")
|
3159
|
+
}
|
3160
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).ID())
|
3201
3161
|
|
3202
|
-
//export api_VMConfig_WorkingDirectory_Set
|
3203
|
-
func api_VMConfig_WorkingDirectory_Set(handle CGoHandle, val *C.char) {
|
3204
|
-
op := ptrFromHandle_api_VMConfig(handle)
|
3205
|
-
op.WorkingDirectory = C.GoString(val)
|
3206
3162
|
}
|
3207
3163
|
|
3208
|
-
//export
|
3209
|
-
func
|
3164
|
+
//export api_GoValue_MarshalJSON
|
3165
|
+
func api_GoValue_MarshalJSON(_handle CGoHandle) CGoHandle {
|
3210
3166
|
_saved_thread := C.PyEval_SaveThread()
|
3211
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3167
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3212
3168
|
if __err != nil {
|
3213
|
-
return
|
3169
|
+
return handleFromPtr_Slice_byte(nil)
|
3214
3170
|
}
|
3215
|
-
__err
|
3171
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).MarshalJSON()
|
3216
3172
|
|
3217
3173
|
C.PyEval_RestoreThread(_saved_thread)
|
3218
3174
|
if __err != nil {
|
3219
3175
|
estr := C.CString(__err.Error())
|
3220
3176
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3221
|
-
|
3177
|
+
C.free(unsafe.Pointer(estr))
|
3178
|
+
return handleFromPtr_Slice_byte(nil)
|
3222
3179
|
}
|
3223
|
-
return
|
3224
|
-
}
|
3225
|
-
|
3226
|
-
// --- wrapping struct: api.VMError ---
|
3227
|
-
//
|
3228
|
-
//export api_VMError_CTor
|
3229
|
-
func api_VMError_CTor() CGoHandle {
|
3230
|
-
return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
|
3180
|
+
return handleFromPtr_Slice_byte(&cret)
|
3231
3181
|
}
|
3232
3182
|
|
3233
|
-
//export
|
3234
|
-
func
|
3235
|
-
|
3236
|
-
|
3237
|
-
|
3183
|
+
//export api_GoValue_Type
|
3184
|
+
func api_GoValue_Type(_handle CGoHandle) *C.char {
|
3185
|
+
_saved_thread := C.PyEval_SaveThread()
|
3186
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3187
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3188
|
+
if __err != nil {
|
3189
|
+
return C.CString("")
|
3190
|
+
}
|
3191
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Type())
|
3238
3192
|
|
3239
|
-
//export api_VMError_Type_Set
|
3240
|
-
func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
|
3241
|
-
op := ptrFromHandle_api_VMError(handle)
|
3242
|
-
op.Type = api.ErrorType(C.GoString(val))
|
3243
3193
|
}
|
3244
3194
|
|
3245
|
-
//export
|
3246
|
-
func
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3195
|
+
//export api_GoValue_Int
|
3196
|
+
func api_GoValue_Int(_handle CGoHandle) C.longlong {
|
3197
|
+
_saved_thread := C.PyEval_SaveThread()
|
3198
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3199
|
+
if __err != nil {
|
3200
|
+
return C.longlong(0)
|
3201
|
+
}
|
3202
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Int()
|
3250
3203
|
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
|
3204
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3205
|
+
if __err != nil {
|
3206
|
+
estr := C.CString(__err.Error())
|
3207
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3208
|
+
C.free(unsafe.Pointer(estr))
|
3209
|
+
return C.longlong(0)
|
3210
|
+
}
|
3211
|
+
return C.longlong(cret)
|
3255
3212
|
}
|
3256
3213
|
|
3257
|
-
//export
|
3258
|
-
func
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3214
|
+
//export api_GoValue_Float
|
3215
|
+
func api_GoValue_Float(_handle CGoHandle) C.double {
|
3216
|
+
_saved_thread := C.PyEval_SaveThread()
|
3217
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3218
|
+
if __err != nil {
|
3219
|
+
return C.double(0)
|
3220
|
+
}
|
3221
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Float()
|
3262
3222
|
|
3263
|
-
|
3264
|
-
|
3265
|
-
|
3266
|
-
|
3223
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3224
|
+
if __err != nil {
|
3225
|
+
estr := C.CString(__err.Error())
|
3226
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3227
|
+
C.free(unsafe.Pointer(estr))
|
3228
|
+
return C.double(0)
|
3229
|
+
}
|
3230
|
+
return C.double(cret)
|
3267
3231
|
}
|
3268
3232
|
|
3269
|
-
//export
|
3270
|
-
func
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3233
|
+
//export api_GoValue_String
|
3234
|
+
func api_GoValue_String(_handle CGoHandle) *C.char {
|
3235
|
+
_saved_thread := C.PyEval_SaveThread()
|
3236
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3237
|
+
if __err != nil {
|
3238
|
+
return C.CString("")
|
3239
|
+
}
|
3240
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).String()
|
3274
3241
|
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3242
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3243
|
+
if __err != nil {
|
3244
|
+
estr := C.CString(__err.Error())
|
3245
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3246
|
+
C.free(unsafe.Pointer(estr))
|
3247
|
+
return C.CString("")
|
3248
|
+
}
|
3249
|
+
return C.CString(cret)
|
3279
3250
|
}
|
3280
3251
|
|
3281
|
-
//export
|
3282
|
-
func
|
3252
|
+
//export api_GoValue_Bool
|
3253
|
+
func api_GoValue_Bool(_handle CGoHandle) C.char {
|
3283
3254
|
_saved_thread := C.PyEval_SaveThread()
|
3284
|
-
|
3285
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3255
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3286
3256
|
if __err != nil {
|
3287
|
-
return
|
3257
|
+
return boolGoToPy(false)
|
3288
3258
|
}
|
3289
|
-
|
3259
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Bool()
|
3290
3260
|
|
3261
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3262
|
+
if __err != nil {
|
3263
|
+
estr := C.CString(__err.Error())
|
3264
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3265
|
+
C.free(unsafe.Pointer(estr))
|
3266
|
+
return boolGoToPy(false)
|
3267
|
+
}
|
3268
|
+
return boolGoToPy(cret)
|
3291
3269
|
}
|
3292
3270
|
|
3293
|
-
//export
|
3294
|
-
func
|
3271
|
+
//export api_GoValue_Slice
|
3272
|
+
func api_GoValue_Slice(_handle CGoHandle) CGoHandle {
|
3295
3273
|
_saved_thread := C.PyEval_SaveThread()
|
3296
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3274
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3297
3275
|
if __err != nil {
|
3298
|
-
return
|
3276
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
3299
3277
|
}
|
3300
|
-
__err
|
3278
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Slice()
|
3301
3279
|
|
3302
3280
|
C.PyEval_RestoreThread(_saved_thread)
|
3303
3281
|
if __err != nil {
|
3304
3282
|
estr := C.CString(__err.Error())
|
3305
3283
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3306
|
-
|
3284
|
+
C.free(unsafe.Pointer(estr))
|
3285
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
3307
3286
|
}
|
3308
|
-
return
|
3287
|
+
return handleFromPtr_Slice_api_GoValue(&cret)
|
3309
3288
|
}
|
3310
3289
|
|
3311
|
-
//export
|
3312
|
-
func
|
3290
|
+
//export api_GoValue_Map
|
3291
|
+
func api_GoValue_Map(_handle CGoHandle) CGoHandle {
|
3313
3292
|
_saved_thread := C.PyEval_SaveThread()
|
3314
|
-
|
3315
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3293
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3316
3294
|
if __err != nil {
|
3317
|
-
return
|
3295
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
3318
3296
|
}
|
3319
|
-
|
3297
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Map()
|
3320
3298
|
|
3299
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3300
|
+
if __err != nil {
|
3301
|
+
estr := C.CString(__err.Error())
|
3302
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3303
|
+
C.free(unsafe.Pointer(estr))
|
3304
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
3305
|
+
}
|
3306
|
+
return handleFromPtr_Map_string_api_GoValue(&cret)
|
3321
3307
|
}
|
3322
3308
|
|
3323
|
-
//export
|
3324
|
-
func
|
3309
|
+
//export api_GoValue_Object
|
3310
|
+
func api_GoValue_Object(_handle CGoHandle) CGoHandle {
|
3325
3311
|
_saved_thread := C.PyEval_SaveThread()
|
3326
|
-
|
3327
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3312
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3328
3313
|
if __err != nil {
|
3329
|
-
return
|
3314
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3330
3315
|
}
|
3331
|
-
|
3332
|
-
|
3333
|
-
}
|
3316
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Object()
|
3334
3317
|
|
3335
|
-
|
3336
|
-
func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
|
3337
|
-
_saved_thread := C.PyEval_SaveThread()
|
3338
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
3339
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3318
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3340
3319
|
if __err != nil {
|
3341
|
-
|
3320
|
+
estr := C.CString(__err.Error())
|
3321
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3322
|
+
C.free(unsafe.Pointer(estr))
|
3323
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3342
3324
|
}
|
3343
|
-
return
|
3325
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
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
|
+
}
|
3344
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)
|
3345
3339
|
}
|
3346
3340
|
|
3347
|
-
//export
|
3348
|
-
func
|
3349
|
-
|
3350
|
-
|
3351
|
-
|
3352
|
-
if __err != nil {
|
3353
|
-
return boolGoToPy(false)
|
3354
|
-
}
|
3355
|
-
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
|
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
|
+
}
|
3356
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)
|
3357
3351
|
}
|
3358
3352
|
|
3359
|
-
//export
|
3360
|
-
func
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
if __err != nil {
|
3365
|
-
return boolGoToPy(false)
|
3366
|
-
}
|
3367
|
-
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
|
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
|
+
}
|
3368
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
3369
|
}
|
3370
3370
|
|
3371
3371
|
// ---- Slices ---
|
@@ -3374,73 +3374,52 @@ func api_VMError_IsConfigError(_handle CGoHandle) C.char {
|
|
3374
3374
|
|
3375
3375
|
// ---- Constructors ---
|
3376
3376
|
|
3377
|
-
//export
|
3378
|
-
func
|
3377
|
+
//export api_DefaultConfig
|
3378
|
+
func api_DefaultConfig() CGoHandle {
|
3379
3379
|
_saved_thread := C.PyEval_SaveThread()
|
3380
3380
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3381
|
-
|
3381
|
+
return handleFromPtr_Ptr_api_VMConfig(api.DefaultConfig())
|
3382
3382
|
|
3383
|
-
return handleFromPtr_api_GoValue(&cret)
|
3384
3383
|
}
|
3385
3384
|
|
3386
|
-
//export
|
3387
|
-
func
|
3385
|
+
//export api_NewCompileError
|
3386
|
+
func api_NewCompileError(message *C.char, source CGoHandle) CGoHandle {
|
3388
3387
|
_saved_thread := C.PyEval_SaveThread()
|
3389
3388
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3390
|
-
|
3389
|
+
return handleFromPtr_Ptr_api_VMError(api.NewCompileError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3391
3390
|
|
3392
|
-
return handleFromPtr_api_GoValue(&cret)
|
3393
3391
|
}
|
3394
3392
|
|
3395
|
-
//export
|
3396
|
-
func
|
3393
|
+
//export api_NewRuntimeError
|
3394
|
+
func api_NewRuntimeError(message *C.char, source CGoHandle) CGoHandle {
|
3397
3395
|
_saved_thread := C.PyEval_SaveThread()
|
3398
3396
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3399
|
-
|
3400
|
-
|
3401
|
-
return handleFromPtr_api_GoValue(&cret)
|
3402
|
-
}
|
3403
|
-
|
3404
|
-
//export api_ToGoValue
|
3405
|
-
func api_ToGoValue(val CGoHandle) CGoHandle {
|
3406
|
-
_saved_thread := C.PyEval_SaveThread()
|
3407
|
-
cret, __err := api.ToGoValue(ptrFromHandle_environment_Value(val))
|
3397
|
+
return handleFromPtr_Ptr_api_VMError(api.NewRuntimeError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3408
3398
|
|
3409
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3410
|
-
if __err != nil {
|
3411
|
-
estr := C.CString(__err.Error())
|
3412
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3413
|
-
C.free(unsafe.Pointer(estr))
|
3414
|
-
return handleFromPtr_api_GoValue(nil)
|
3415
|
-
}
|
3416
|
-
return handleFromPtr_api_GoValue(&cret)
|
3417
3399
|
}
|
3418
3400
|
|
3419
|
-
//export
|
3420
|
-
func
|
3401
|
+
//export api_NewTimeoutError
|
3402
|
+
func api_NewTimeoutError(duration C.longlong) CGoHandle {
|
3421
3403
|
_saved_thread := C.PyEval_SaveThread()
|
3422
3404
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3423
|
-
|
3405
|
+
return handleFromPtr_Ptr_api_VMError(api.NewTimeoutError(time.Duration(int64(duration))))
|
3424
3406
|
|
3425
|
-
return handleFromPtr_api_GoValue(&cret)
|
3426
3407
|
}
|
3427
3408
|
|
3428
|
-
//export
|
3429
|
-
func
|
3409
|
+
//export api_NewConfigError
|
3410
|
+
func api_NewConfigError(message *C.char, wrapped *C.char) CGoHandle {
|
3430
3411
|
_saved_thread := C.PyEval_SaveThread()
|
3431
3412
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3432
|
-
|
3413
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConfigError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3433
3414
|
|
3434
|
-
return handleFromPtr_api_GoValue(&cret)
|
3435
3415
|
}
|
3436
3416
|
|
3437
|
-
//export
|
3438
|
-
func
|
3417
|
+
//export api_NewConversionError
|
3418
|
+
func api_NewConversionError(message *C.char, wrapped *C.char) CGoHandle {
|
3439
3419
|
_saved_thread := C.PyEval_SaveThread()
|
3440
3420
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3441
|
-
|
3421
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConversionError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3442
3422
|
|
3443
|
-
return handleFromPtr_api_GoValue(&cret)
|
3444
3423
|
}
|
3445
3424
|
|
3446
3425
|
//export api_NewVM
|
@@ -3466,71 +3445,77 @@ func api_NewClassDefinition() CGoHandle {
|
|
3466
3445
|
|
3467
3446
|
}
|
3468
3447
|
|
3469
|
-
//export
|
3470
|
-
func
|
3448
|
+
//export api_WrapInt
|
3449
|
+
func api_WrapInt(value C.longlong) CGoHandle {
|
3471
3450
|
_saved_thread := C.PyEval_SaveThread()
|
3472
3451
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3473
|
-
|
3452
|
+
cret := api.WrapInt(int64(value))
|
3474
3453
|
|
3454
|
+
return handleFromPtr_api_GoValue(&cret)
|
3475
3455
|
}
|
3476
3456
|
|
3477
|
-
//export
|
3478
|
-
func
|
3457
|
+
//export api_WrapBool
|
3458
|
+
func api_WrapBool(value C.char) CGoHandle {
|
3479
3459
|
_saved_thread := C.PyEval_SaveThread()
|
3480
3460
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3481
|
-
|
3461
|
+
cret := api.WrapBool(boolPyToGo(value))
|
3482
3462
|
|
3463
|
+
return handleFromPtr_api_GoValue(&cret)
|
3483
3464
|
}
|
3484
3465
|
|
3485
|
-
//export
|
3486
|
-
func
|
3466
|
+
//export api_WrapFloat
|
3467
|
+
func api_WrapFloat(value C.double) CGoHandle {
|
3487
3468
|
_saved_thread := C.PyEval_SaveThread()
|
3488
3469
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3489
|
-
|
3470
|
+
cret := api.WrapFloat(float64(value))
|
3490
3471
|
|
3472
|
+
return handleFromPtr_api_GoValue(&cret)
|
3491
3473
|
}
|
3492
3474
|
|
3493
|
-
//export
|
3494
|
-
func
|
3475
|
+
//export api_ToGoValue
|
3476
|
+
func api_ToGoValue(val CGoHandle) CGoHandle {
|
3495
3477
|
_saved_thread := C.PyEval_SaveThread()
|
3496
|
-
|
3497
|
-
return handleFromPtr_Ptr_api_VMError(api.NewConfigError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3478
|
+
cret, __err := api.ToGoValue(ptrFromHandle_environment_Value(val))
|
3498
3479
|
|
3480
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3481
|
+
if __err != nil {
|
3482
|
+
estr := C.CString(__err.Error())
|
3483
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3484
|
+
C.free(unsafe.Pointer(estr))
|
3485
|
+
return handleFromPtr_api_GoValue(nil)
|
3486
|
+
}
|
3487
|
+
return handleFromPtr_api_GoValue(&cret)
|
3499
3488
|
}
|
3500
3489
|
|
3501
|
-
//export
|
3502
|
-
func
|
3490
|
+
//export api_WrapString
|
3491
|
+
func api_WrapString(value *C.char) CGoHandle {
|
3503
3492
|
_saved_thread := C.PyEval_SaveThread()
|
3504
3493
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3505
|
-
|
3494
|
+
cret := api.WrapString(C.GoString(value))
|
3506
3495
|
|
3496
|
+
return handleFromPtr_api_GoValue(&cret)
|
3507
3497
|
}
|
3508
3498
|
|
3509
|
-
//export
|
3510
|
-
func
|
3499
|
+
//export api_WrapAny
|
3500
|
+
func api_WrapAny(value *C.char) CGoHandle {
|
3511
3501
|
_saved_thread := C.PyEval_SaveThread()
|
3512
3502
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3513
|
-
|
3503
|
+
cret := api.WrapAny(C.GoString(value))
|
3514
3504
|
|
3505
|
+
return handleFromPtr_api_GoValue(&cret)
|
3515
3506
|
}
|
3516
3507
|
|
3517
|
-
//
|
3518
|
-
|
3519
|
-
//export api_FromGoValue
|
3520
|
-
func api_FromGoValue(val CGoHandle) CGoHandle {
|
3508
|
+
//export api_WrapObject
|
3509
|
+
func api_WrapObject(value CGoHandle) CGoHandle {
|
3521
3510
|
_saved_thread := C.PyEval_SaveThread()
|
3522
|
-
|
3511
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3512
|
+
cret := api.WrapObject(ptrFromHandle_Ptr_environment_ObjectInstance(value))
|
3523
3513
|
|
3524
|
-
|
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_environment_Value(nil)
|
3530
|
-
}
|
3531
|
-
return handleFromPtr_environment_Value(cret)
|
3514
|
+
return handleFromPtr_api_GoValue(&cret)
|
3532
3515
|
}
|
3533
3516
|
|
3517
|
+
// ---- Functions ---
|
3518
|
+
|
3534
3519
|
//export api_LookupObject
|
3535
3520
|
func api_LookupObject(id *C.char) CGoHandle {
|
3536
3521
|
_saved_thread := C.PyEval_SaveThread()
|
@@ -3560,3 +3545,18 @@ func api_ConvertArguments(args CGoHandle) CGoHandle {
|
|
3560
3545
|
}
|
3561
3546
|
return handleFromPtr_Slice_environment_Value(&cret)
|
3562
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
|
+
}
|