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