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