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