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