objective-lol 0.0.1__cp312-cp312-win_amd64.whl → 0.0.2__cp312-cp312-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.cp312-win_amd64.h +82 -82
- objective_lol/_api.cp312-win_amd64.pyd +0 -0
- objective_lol/api.c +941 -941
- objective_lol/api.go +510 -510
- objective_lol/api.py +520 -520
- objective_lol/api_go.h +82 -82
- 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,271 +2272,187 @@ func Map_string_api_GoValue_keys(handle CGoHandle) CGoHandle {
|
|
2272
2272
|
|
2273
2273
|
// ---- Structs ---
|
2274
2274
|
|
2275
|
-
// --- wrapping struct: api.
|
2275
|
+
// --- wrapping struct: api.GoValue ---
|
2276
2276
|
//
|
2277
|
-
//export
|
2278
|
-
func
|
2279
|
-
return CGoHandle(
|
2280
|
-
}
|
2281
|
-
|
2282
|
-
//export api_VMError_Type_Get
|
2283
|
-
func api_VMError_Type_Get(handle CGoHandle) *C.char {
|
2284
|
-
op := ptrFromHandle_api_VMError(handle)
|
2285
|
-
return C.CString(string(op.Type))
|
2286
|
-
}
|
2287
|
-
|
2288
|
-
//export api_VMError_Type_Set
|
2289
|
-
func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
|
2290
|
-
op := ptrFromHandle_api_VMError(handle)
|
2291
|
-
op.Type = api.ErrorType(C.GoString(val))
|
2292
|
-
}
|
2293
|
-
|
2294
|
-
//export api_VMError_Message_Get
|
2295
|
-
func api_VMError_Message_Get(handle CGoHandle) *C.char {
|
2296
|
-
op := ptrFromHandle_api_VMError(handle)
|
2297
|
-
return C.CString(op.Message)
|
2298
|
-
}
|
2299
|
-
|
2300
|
-
//export api_VMError_Message_Set
|
2301
|
-
func api_VMError_Message_Set(handle CGoHandle, val *C.char) {
|
2302
|
-
op := ptrFromHandle_api_VMError(handle)
|
2303
|
-
op.Message = C.GoString(val)
|
2304
|
-
}
|
2305
|
-
|
2306
|
-
//export api_VMError_Source_Get
|
2307
|
-
func api_VMError_Source_Get(handle CGoHandle) CGoHandle {
|
2308
|
-
op := ptrFromHandle_api_VMError(handle)
|
2309
|
-
return handleFromPtr_Ptr_api_SourceLocation(op.Source)
|
2310
|
-
}
|
2311
|
-
|
2312
|
-
//export api_VMError_Source_Set
|
2313
|
-
func api_VMError_Source_Set(handle CGoHandle, val CGoHandle) {
|
2314
|
-
op := ptrFromHandle_api_VMError(handle)
|
2315
|
-
op.Source = ptrFromHandle_Ptr_api_SourceLocation(val)
|
2316
|
-
}
|
2317
|
-
|
2318
|
-
//export api_VMError_Duration_Get
|
2319
|
-
func api_VMError_Duration_Get(handle CGoHandle) C.longlong {
|
2320
|
-
op := ptrFromHandle_api_VMError(handle)
|
2321
|
-
return C.longlong(int64(op.Duration))
|
2322
|
-
}
|
2323
|
-
|
2324
|
-
//export api_VMError_Duration_Set
|
2325
|
-
func api_VMError_Duration_Set(handle CGoHandle, val C.longlong) {
|
2326
|
-
op := ptrFromHandle_api_VMError(handle)
|
2327
|
-
op.Duration = time.Duration(int64(val))
|
2277
|
+
//export api_GoValue_CTor
|
2278
|
+
func api_GoValue_CTor() CGoHandle {
|
2279
|
+
return CGoHandle(handleFromPtr_api_GoValue(&api.GoValue{}))
|
2328
2280
|
}
|
2329
2281
|
|
2330
|
-
//export
|
2331
|
-
func
|
2282
|
+
//export api_GoValue_ID
|
2283
|
+
func api_GoValue_ID(_handle CGoHandle) *C.char {
|
2332
2284
|
_saved_thread := C.PyEval_SaveThread()
|
2333
2285
|
defer C.PyEval_RestoreThread(_saved_thread)
|
2334
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2286
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2335
2287
|
if __err != nil {
|
2336
2288
|
return C.CString("")
|
2337
2289
|
}
|
2338
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.
|
2290
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).ID())
|
2339
2291
|
|
2340
2292
|
}
|
2341
2293
|
|
2342
|
-
//export
|
2343
|
-
func
|
2294
|
+
//export api_GoValue_MarshalJSON
|
2295
|
+
func api_GoValue_MarshalJSON(_handle CGoHandle) CGoHandle {
|
2344
2296
|
_saved_thread := C.PyEval_SaveThread()
|
2345
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2297
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2346
2298
|
if __err != nil {
|
2347
|
-
return
|
2299
|
+
return handleFromPtr_Slice_byte(nil)
|
2348
2300
|
}
|
2349
|
-
__err
|
2301
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).MarshalJSON()
|
2350
2302
|
|
2351
2303
|
C.PyEval_RestoreThread(_saved_thread)
|
2352
2304
|
if __err != nil {
|
2353
2305
|
estr := C.CString(__err.Error())
|
2354
2306
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2355
|
-
|
2307
|
+
C.free(unsafe.Pointer(estr))
|
2308
|
+
return handleFromPtr_Slice_byte(nil)
|
2356
2309
|
}
|
2357
|
-
return
|
2310
|
+
return handleFromPtr_Slice_byte(&cret)
|
2358
2311
|
}
|
2359
2312
|
|
2360
|
-
//export
|
2361
|
-
func
|
2313
|
+
//export api_GoValue_Type
|
2314
|
+
func api_GoValue_Type(_handle CGoHandle) *C.char {
|
2362
2315
|
_saved_thread := C.PyEval_SaveThread()
|
2363
2316
|
defer C.PyEval_RestoreThread(_saved_thread)
|
2364
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
2317
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2365
2318
|
if __err != nil {
|
2366
|
-
return
|
2319
|
+
return C.CString("")
|
2367
2320
|
}
|
2368
|
-
return
|
2321
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Type())
|
2369
2322
|
|
2370
2323
|
}
|
2371
2324
|
|
2372
|
-
//export
|
2373
|
-
func
|
2325
|
+
//export api_GoValue_Int
|
2326
|
+
func api_GoValue_Int(_handle CGoHandle) C.longlong {
|
2374
2327
|
_saved_thread := C.PyEval_SaveThread()
|
2375
|
-
|
2376
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2328
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2377
2329
|
if __err != nil {
|
2378
|
-
return
|
2330
|
+
return C.longlong(0)
|
2379
2331
|
}
|
2380
|
-
|
2332
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Int()
|
2381
2333
|
|
2334
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2335
|
+
if __err != nil {
|
2336
|
+
estr := C.CString(__err.Error())
|
2337
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2338
|
+
C.free(unsafe.Pointer(estr))
|
2339
|
+
return C.longlong(0)
|
2340
|
+
}
|
2341
|
+
return C.longlong(cret)
|
2382
2342
|
}
|
2383
2343
|
|
2384
|
-
//export
|
2385
|
-
func
|
2344
|
+
//export api_GoValue_Float
|
2345
|
+
func api_GoValue_Float(_handle CGoHandle) C.double {
|
2386
2346
|
_saved_thread := C.PyEval_SaveThread()
|
2387
|
-
|
2388
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2347
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2389
2348
|
if __err != nil {
|
2390
|
-
return
|
2349
|
+
return C.double(0)
|
2391
2350
|
}
|
2392
|
-
|
2351
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Float()
|
2393
2352
|
|
2353
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2354
|
+
if __err != nil {
|
2355
|
+
estr := C.CString(__err.Error())
|
2356
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2357
|
+
C.free(unsafe.Pointer(estr))
|
2358
|
+
return C.double(0)
|
2359
|
+
}
|
2360
|
+
return C.double(cret)
|
2394
2361
|
}
|
2395
2362
|
|
2396
|
-
//export
|
2397
|
-
func
|
2363
|
+
//export api_GoValue_String
|
2364
|
+
func api_GoValue_String(_handle CGoHandle) *C.char {
|
2398
2365
|
_saved_thread := C.PyEval_SaveThread()
|
2399
|
-
|
2400
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2366
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2401
2367
|
if __err != nil {
|
2402
|
-
return
|
2368
|
+
return C.CString("")
|
2403
2369
|
}
|
2404
|
-
|
2370
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).String()
|
2405
2371
|
|
2372
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2373
|
+
if __err != nil {
|
2374
|
+
estr := C.CString(__err.Error())
|
2375
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2376
|
+
C.free(unsafe.Pointer(estr))
|
2377
|
+
return C.CString("")
|
2378
|
+
}
|
2379
|
+
return C.CString(cret)
|
2406
2380
|
}
|
2407
2381
|
|
2408
|
-
//export
|
2409
|
-
func
|
2382
|
+
//export api_GoValue_Bool
|
2383
|
+
func api_GoValue_Bool(_handle CGoHandle) C.char {
|
2410
2384
|
_saved_thread := C.PyEval_SaveThread()
|
2411
|
-
|
2412
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
2385
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2413
2386
|
if __err != nil {
|
2414
2387
|
return boolGoToPy(false)
|
2415
2388
|
}
|
2416
|
-
|
2417
|
-
|
2418
|
-
}
|
2419
|
-
|
2420
|
-
// --- wrapping struct: api.ClassDefinition ---
|
2421
|
-
//
|
2422
|
-
//export api_ClassDefinition_CTor
|
2423
|
-
func api_ClassDefinition_CTor() CGoHandle {
|
2424
|
-
return CGoHandle(handleFromPtr_api_ClassDefinition(&api.ClassDefinition{}))
|
2425
|
-
}
|
2426
|
-
|
2427
|
-
//export api_ClassDefinition_Name_Get
|
2428
|
-
func api_ClassDefinition_Name_Get(handle CGoHandle) *C.char {
|
2429
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2430
|
-
return C.CString(op.Name)
|
2431
|
-
}
|
2432
|
-
|
2433
|
-
//export api_ClassDefinition_Name_Set
|
2434
|
-
func api_ClassDefinition_Name_Set(handle CGoHandle, val *C.char) {
|
2435
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2436
|
-
op.Name = C.GoString(val)
|
2437
|
-
}
|
2438
|
-
|
2439
|
-
//export api_ClassDefinition_PublicVariables_Get
|
2440
|
-
func api_ClassDefinition_PublicVariables_Get(handle CGoHandle) CGoHandle {
|
2441
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2442
|
-
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PublicVariables)
|
2443
|
-
}
|
2444
|
-
|
2445
|
-
//export api_ClassDefinition_PublicVariables_Set
|
2446
|
-
func api_ClassDefinition_PublicVariables_Set(handle CGoHandle, val CGoHandle) {
|
2447
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2448
|
-
op.PublicVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2449
|
-
}
|
2450
|
-
|
2451
|
-
//export api_ClassDefinition_PrivateVariables_Get
|
2452
|
-
func api_ClassDefinition_PrivateVariables_Get(handle CGoHandle) CGoHandle {
|
2453
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2454
|
-
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PrivateVariables)
|
2455
|
-
}
|
2456
|
-
|
2457
|
-
//export api_ClassDefinition_PrivateVariables_Set
|
2458
|
-
func api_ClassDefinition_PrivateVariables_Set(handle CGoHandle, val CGoHandle) {
|
2459
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2460
|
-
op.PrivateVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2461
|
-
}
|
2462
|
-
|
2463
|
-
//export api_ClassDefinition_SharedVariables_Get
|
2464
|
-
func api_ClassDefinition_SharedVariables_Get(handle CGoHandle) CGoHandle {
|
2465
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2466
|
-
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.SharedVariables)
|
2467
|
-
}
|
2468
|
-
|
2469
|
-
//export api_ClassDefinition_SharedVariables_Set
|
2470
|
-
func api_ClassDefinition_SharedVariables_Set(handle CGoHandle, val CGoHandle) {
|
2471
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2472
|
-
op.SharedVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2473
|
-
}
|
2474
|
-
|
2475
|
-
//export api_ClassDefinition_PublicMethods_Get
|
2476
|
-
func api_ClassDefinition_PublicMethods_Get(handle CGoHandle) CGoHandle {
|
2477
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2478
|
-
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PublicMethods)
|
2479
|
-
}
|
2480
|
-
|
2481
|
-
//export api_ClassDefinition_PublicMethods_Set
|
2482
|
-
func api_ClassDefinition_PublicMethods_Set(handle CGoHandle, val CGoHandle) {
|
2483
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2484
|
-
op.PublicMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
2485
|
-
}
|
2486
|
-
|
2487
|
-
//export api_ClassDefinition_PrivateMethods_Get
|
2488
|
-
func api_ClassDefinition_PrivateMethods_Get(handle CGoHandle) CGoHandle {
|
2489
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2490
|
-
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PrivateMethods)
|
2491
|
-
}
|
2492
|
-
|
2493
|
-
//export api_ClassDefinition_PrivateMethods_Set
|
2494
|
-
func api_ClassDefinition_PrivateMethods_Set(handle CGoHandle, val CGoHandle) {
|
2495
|
-
op := ptrFromHandle_api_ClassDefinition(handle)
|
2496
|
-
op.PrivateMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
2497
|
-
}
|
2389
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Bool()
|
2498
2390
|
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2391
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2392
|
+
if __err != nil {
|
2393
|
+
estr := C.CString(__err.Error())
|
2394
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2395
|
+
C.free(unsafe.Pointer(estr))
|
2396
|
+
return boolGoToPy(false)
|
2397
|
+
}
|
2398
|
+
return boolGoToPy(cret)
|
2503
2399
|
}
|
2504
2400
|
|
2505
|
-
//export
|
2506
|
-
func
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2401
|
+
//export api_GoValue_Slice
|
2402
|
+
func api_GoValue_Slice(_handle CGoHandle) CGoHandle {
|
2403
|
+
_saved_thread := C.PyEval_SaveThread()
|
2404
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2405
|
+
if __err != nil {
|
2406
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
2407
|
+
}
|
2408
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Slice()
|
2510
2409
|
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2410
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2411
|
+
if __err != nil {
|
2412
|
+
estr := C.CString(__err.Error())
|
2413
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2414
|
+
C.free(unsafe.Pointer(estr))
|
2415
|
+
return handleFromPtr_Slice_api_GoValue(nil)
|
2416
|
+
}
|
2417
|
+
return handleFromPtr_Slice_api_GoValue(&cret)
|
2516
2418
|
}
|
2517
2419
|
|
2518
|
-
//export
|
2519
|
-
func
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2420
|
+
//export api_GoValue_Map
|
2421
|
+
func api_GoValue_Map(_handle CGoHandle) CGoHandle {
|
2422
|
+
_saved_thread := C.PyEval_SaveThread()
|
2423
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2424
|
+
if __err != nil {
|
2425
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
2426
|
+
}
|
2427
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Map()
|
2523
2428
|
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2429
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2430
|
+
if __err != nil {
|
2431
|
+
estr := C.CString(__err.Error())
|
2432
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2433
|
+
C.free(unsafe.Pointer(estr))
|
2434
|
+
return handleFromPtr_Map_string_api_GoValue(nil)
|
2435
|
+
}
|
2436
|
+
return handleFromPtr_Map_string_api_GoValue(&cret)
|
2528
2437
|
}
|
2529
2438
|
|
2530
|
-
//export
|
2531
|
-
func
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2439
|
+
//export api_GoValue_Object
|
2440
|
+
func api_GoValue_Object(_handle CGoHandle) CGoHandle {
|
2441
|
+
_saved_thread := C.PyEval_SaveThread()
|
2442
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
2443
|
+
if __err != nil {
|
2444
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
2445
|
+
}
|
2446
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Object()
|
2535
2447
|
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2448
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2449
|
+
if __err != nil {
|
2450
|
+
estr := C.CString(__err.Error())
|
2451
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2452
|
+
C.free(unsafe.Pointer(estr))
|
2453
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
2454
|
+
}
|
2455
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
2540
2456
|
}
|
2541
2457
|
|
2542
2458
|
// --- wrapping struct: api.SourceLocation ---
|
@@ -2582,6 +2498,13 @@ func api_SourceLocation_Column_Set(handle CGoHandle, val C.longlong) {
|
|
2582
2498
|
op.Column = int(val)
|
2583
2499
|
}
|
2584
2500
|
|
2501
|
+
// --- wrapping struct: api.UnknownFunctionHandler ---
|
2502
|
+
//
|
2503
|
+
//export api_UnknownFunctionHandler_CTor
|
2504
|
+
func api_UnknownFunctionHandler_CTor() CGoHandle {
|
2505
|
+
return CGoHandle(handleFromPtr_api_UnknownFunctionHandler(&api.UnknownFunctionHandler{}))
|
2506
|
+
}
|
2507
|
+
|
2585
2508
|
// --- wrapping struct: api.VM ---
|
2586
2509
|
//
|
2587
2510
|
//export api_VM_CTor
|
@@ -2982,41 +2905,206 @@ func api_VMCompatibilityShim_GetObjectImmediateFunctions(_handle CGoHandle, id *
|
|
2982
2905
|
return handleFromPtr_Slice_string(&cret)
|
2983
2906
|
}
|
2984
2907
|
|
2985
|
-
//export api_VMCompatibilityShim_GetObjectImmediateVariables
|
2986
|
-
func api_VMCompatibilityShim_GetObjectImmediateVariables(_handle CGoHandle, id *C.char) CGoHandle {
|
2987
|
-
_saved_thread := C.PyEval_SaveThread()
|
2988
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2989
|
-
if __err != nil {
|
2990
|
-
return handleFromPtr_Slice_string(nil)
|
2991
|
-
}
|
2992
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateVariables(C.GoString(id))
|
2908
|
+
//export api_VMCompatibilityShim_GetObjectImmediateVariables
|
2909
|
+
func api_VMCompatibilityShim_GetObjectImmediateVariables(_handle CGoHandle, id *C.char) CGoHandle {
|
2910
|
+
_saved_thread := C.PyEval_SaveThread()
|
2911
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2912
|
+
if __err != nil {
|
2913
|
+
return handleFromPtr_Slice_string(nil)
|
2914
|
+
}
|
2915
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).GetObjectImmediateVariables(C.GoString(id))
|
2916
|
+
|
2917
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2918
|
+
if __err != nil {
|
2919
|
+
estr := C.CString(__err.Error())
|
2920
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2921
|
+
C.free(unsafe.Pointer(estr))
|
2922
|
+
return handleFromPtr_Slice_string(nil)
|
2923
|
+
}
|
2924
|
+
return handleFromPtr_Slice_string(&cret)
|
2925
|
+
}
|
2926
|
+
|
2927
|
+
//export api_VMCompatibilityShim_AddVariableToObject
|
2928
|
+
func api_VMCompatibilityShim_AddVariableToObject(_handle CGoHandle, id *C.char, variable CGoHandle) *C.char {
|
2929
|
+
_saved_thread := C.PyEval_SaveThread()
|
2930
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMCompatibilityShim")
|
2931
|
+
if __err != nil {
|
2932
|
+
return errorGoToPy(nil)
|
2933
|
+
}
|
2934
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).AddVariableToObject(C.GoString(id), ptrFromHandle_Ptr_api_ClassVariable(variable))
|
2935
|
+
|
2936
|
+
C.PyEval_RestoreThread(_saved_thread)
|
2937
|
+
if __err != nil {
|
2938
|
+
estr := C.CString(__err.Error())
|
2939
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
2940
|
+
return estr
|
2941
|
+
}
|
2942
|
+
return C.CString("")
|
2943
|
+
}
|
2944
|
+
|
2945
|
+
// --- wrapping struct: api.ClassDefinition ---
|
2946
|
+
//
|
2947
|
+
//export api_ClassDefinition_CTor
|
2948
|
+
func api_ClassDefinition_CTor() CGoHandle {
|
2949
|
+
return CGoHandle(handleFromPtr_api_ClassDefinition(&api.ClassDefinition{}))
|
2950
|
+
}
|
2951
|
+
|
2952
|
+
//export api_ClassDefinition_Name_Get
|
2953
|
+
func api_ClassDefinition_Name_Get(handle CGoHandle) *C.char {
|
2954
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2955
|
+
return C.CString(op.Name)
|
2956
|
+
}
|
2957
|
+
|
2958
|
+
//export api_ClassDefinition_Name_Set
|
2959
|
+
func api_ClassDefinition_Name_Set(handle CGoHandle, val *C.char) {
|
2960
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2961
|
+
op.Name = C.GoString(val)
|
2962
|
+
}
|
2963
|
+
|
2964
|
+
//export api_ClassDefinition_PublicVariables_Get
|
2965
|
+
func api_ClassDefinition_PublicVariables_Get(handle CGoHandle) CGoHandle {
|
2966
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2967
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PublicVariables)
|
2968
|
+
}
|
2969
|
+
|
2970
|
+
//export api_ClassDefinition_PublicVariables_Set
|
2971
|
+
func api_ClassDefinition_PublicVariables_Set(handle CGoHandle, val CGoHandle) {
|
2972
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2973
|
+
op.PublicVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2974
|
+
}
|
2975
|
+
|
2976
|
+
//export api_ClassDefinition_PrivateVariables_Get
|
2977
|
+
func api_ClassDefinition_PrivateVariables_Get(handle CGoHandle) CGoHandle {
|
2978
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2979
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.PrivateVariables)
|
2980
|
+
}
|
2981
|
+
|
2982
|
+
//export api_ClassDefinition_PrivateVariables_Set
|
2983
|
+
func api_ClassDefinition_PrivateVariables_Set(handle CGoHandle, val CGoHandle) {
|
2984
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2985
|
+
op.PrivateVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2986
|
+
}
|
2987
|
+
|
2988
|
+
//export api_ClassDefinition_SharedVariables_Get
|
2989
|
+
func api_ClassDefinition_SharedVariables_Get(handle CGoHandle) CGoHandle {
|
2990
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2991
|
+
return handleFromPtr_Map_string_Ptr_api_ClassVariable(&op.SharedVariables)
|
2992
|
+
}
|
2993
|
+
|
2994
|
+
//export api_ClassDefinition_SharedVariables_Set
|
2995
|
+
func api_ClassDefinition_SharedVariables_Set(handle CGoHandle, val CGoHandle) {
|
2996
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
2997
|
+
op.SharedVariables = deptrFromHandle_Map_string_Ptr_api_ClassVariable(val)
|
2998
|
+
}
|
2999
|
+
|
3000
|
+
//export api_ClassDefinition_PublicMethods_Get
|
3001
|
+
func api_ClassDefinition_PublicMethods_Get(handle CGoHandle) CGoHandle {
|
3002
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3003
|
+
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PublicMethods)
|
3004
|
+
}
|
3005
|
+
|
3006
|
+
//export api_ClassDefinition_PublicMethods_Set
|
3007
|
+
func api_ClassDefinition_PublicMethods_Set(handle CGoHandle, val CGoHandle) {
|
3008
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3009
|
+
op.PublicMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
3010
|
+
}
|
3011
|
+
|
3012
|
+
//export api_ClassDefinition_PrivateMethods_Get
|
3013
|
+
func api_ClassDefinition_PrivateMethods_Get(handle CGoHandle) CGoHandle {
|
3014
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3015
|
+
return handleFromPtr_Map_string_Ptr_api_ClassMethod(&op.PrivateMethods)
|
3016
|
+
}
|
3017
|
+
|
3018
|
+
//export api_ClassDefinition_PrivateMethods_Set
|
3019
|
+
func api_ClassDefinition_PrivateMethods_Set(handle CGoHandle, val CGoHandle) {
|
3020
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3021
|
+
op.PrivateMethods = deptrFromHandle_Map_string_Ptr_api_ClassMethod(val)
|
3022
|
+
}
|
3023
|
+
|
3024
|
+
//export api_ClassDefinition_UnknownFunctionHandler_Get
|
3025
|
+
func api_ClassDefinition_UnknownFunctionHandler_Get(handle CGoHandle) CGoHandle {
|
3026
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3027
|
+
return handleFromPtr_Ptr_api_UnknownFunctionHandler(op.UnknownFunctionHandler)
|
3028
|
+
}
|
3029
|
+
|
3030
|
+
//export api_ClassDefinition_UnknownFunctionHandler_Set
|
3031
|
+
func api_ClassDefinition_UnknownFunctionHandler_Set(handle CGoHandle, val CGoHandle) {
|
3032
|
+
op := ptrFromHandle_api_ClassDefinition(handle)
|
3033
|
+
op.UnknownFunctionHandler = ptrFromHandle_Ptr_api_UnknownFunctionHandler(val)
|
3034
|
+
}
|
3035
|
+
|
3036
|
+
// --- wrapping struct: api.ClassMethod ---
|
3037
|
+
//
|
3038
|
+
//export api_ClassMethod_CTor
|
3039
|
+
func api_ClassMethod_CTor() CGoHandle {
|
3040
|
+
return CGoHandle(handleFromPtr_api_ClassMethod(&api.ClassMethod{}))
|
3041
|
+
}
|
3042
|
+
|
3043
|
+
//export api_ClassMethod_Name_Get
|
3044
|
+
func api_ClassMethod_Name_Get(handle CGoHandle) *C.char {
|
3045
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3046
|
+
return C.CString(op.Name)
|
3047
|
+
}
|
3048
|
+
|
3049
|
+
//export api_ClassMethod_Name_Set
|
3050
|
+
func api_ClassMethod_Name_Set(handle CGoHandle, val *C.char) {
|
3051
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3052
|
+
op.Name = C.GoString(val)
|
3053
|
+
}
|
3054
|
+
|
3055
|
+
//export api_ClassMethod_Argc_Get
|
3056
|
+
func api_ClassMethod_Argc_Get(handle CGoHandle) C.longlong {
|
3057
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3058
|
+
return C.longlong(op.Argc)
|
3059
|
+
}
|
3060
|
+
|
3061
|
+
//export api_ClassMethod_Argc_Set
|
3062
|
+
func api_ClassMethod_Argc_Set(handle CGoHandle, val C.longlong) {
|
3063
|
+
op := ptrFromHandle_api_ClassMethod(handle)
|
3064
|
+
op.Argc = int(val)
|
3065
|
+
}
|
3066
|
+
|
3067
|
+
// --- wrapping struct: api.ClassVariable ---
|
3068
|
+
//
|
3069
|
+
//export api_ClassVariable_CTor
|
3070
|
+
func api_ClassVariable_CTor() CGoHandle {
|
3071
|
+
return CGoHandle(handleFromPtr_api_ClassVariable(&api.ClassVariable{}))
|
3072
|
+
}
|
3073
|
+
|
3074
|
+
//export api_ClassVariable_Name_Get
|
3075
|
+
func api_ClassVariable_Name_Get(handle CGoHandle) *C.char {
|
3076
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3077
|
+
return C.CString(op.Name)
|
3078
|
+
}
|
3079
|
+
|
3080
|
+
//export api_ClassVariable_Name_Set
|
3081
|
+
func api_ClassVariable_Name_Set(handle CGoHandle, val *C.char) {
|
3082
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3083
|
+
op.Name = C.GoString(val)
|
3084
|
+
}
|
3085
|
+
|
3086
|
+
//export api_ClassVariable_Value_Get
|
3087
|
+
func api_ClassVariable_Value_Get(handle CGoHandle) CGoHandle {
|
3088
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3089
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
3090
|
+
}
|
2993
3091
|
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
C.free(unsafe.Pointer(estr))
|
2999
|
-
return handleFromPtr_Slice_string(nil)
|
3000
|
-
}
|
3001
|
-
return handleFromPtr_Slice_string(&cret)
|
3092
|
+
//export api_ClassVariable_Value_Set
|
3093
|
+
func api_ClassVariable_Value_Set(handle CGoHandle, val CGoHandle) {
|
3094
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3095
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
3002
3096
|
}
|
3003
3097
|
|
3004
|
-
//export
|
3005
|
-
func
|
3006
|
-
|
3007
|
-
|
3008
|
-
|
3009
|
-
return errorGoToPy(nil)
|
3010
|
-
}
|
3011
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMCompatibilityShim{})).(*api.VMCompatibilityShim).AddVariableToObject(C.GoString(id), ptrFromHandle_Ptr_api_ClassVariable(variable))
|
3098
|
+
//export api_ClassVariable_Locked_Get
|
3099
|
+
func api_ClassVariable_Locked_Get(handle CGoHandle) C.char {
|
3100
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3101
|
+
return boolGoToPy(op.Locked)
|
3102
|
+
}
|
3012
3103
|
|
3013
|
-
|
3014
|
-
|
3015
|
-
|
3016
|
-
|
3017
|
-
return estr
|
3018
|
-
}
|
3019
|
-
return C.CString("")
|
3104
|
+
//export api_ClassVariable_Locked_Set
|
3105
|
+
func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
|
3106
|
+
op := ptrFromHandle_api_ClassVariable(handle)
|
3107
|
+
op.Locked = boolPyToGo(val)
|
3020
3108
|
}
|
3021
3109
|
|
3022
3110
|
// --- wrapping struct: api.VMConfig ---
|
@@ -3092,280 +3180,192 @@ func api_VMConfig_Validate(_handle CGoHandle) *C.char {
|
|
3092
3180
|
return C.CString("")
|
3093
3181
|
}
|
3094
3182
|
|
3095
|
-
// --- wrapping struct: api.
|
3183
|
+
// --- wrapping struct: api.VMError ---
|
3096
3184
|
//
|
3097
|
-
//export
|
3098
|
-
func
|
3099
|
-
return CGoHandle(
|
3100
|
-
}
|
3101
|
-
|
3102
|
-
//export api_ClassVariable_Name_Get
|
3103
|
-
func api_ClassVariable_Name_Get(handle CGoHandle) *C.char {
|
3104
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3105
|
-
return C.CString(op.Name)
|
3106
|
-
}
|
3107
|
-
|
3108
|
-
//export api_ClassVariable_Name_Set
|
3109
|
-
func api_ClassVariable_Name_Set(handle CGoHandle, val *C.char) {
|
3110
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3111
|
-
op.Name = C.GoString(val)
|
3112
|
-
}
|
3113
|
-
|
3114
|
-
//export api_ClassVariable_Value_Get
|
3115
|
-
func api_ClassVariable_Value_Get(handle CGoHandle) CGoHandle {
|
3116
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3117
|
-
return handleFromPtr_api_GoValue(&op.Value)
|
3118
|
-
}
|
3119
|
-
|
3120
|
-
//export api_ClassVariable_Value_Set
|
3121
|
-
func api_ClassVariable_Value_Set(handle CGoHandle, val CGoHandle) {
|
3122
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3123
|
-
op.Value = *ptrFromHandle_api_GoValue(val)
|
3124
|
-
}
|
3125
|
-
|
3126
|
-
//export api_ClassVariable_Locked_Get
|
3127
|
-
func api_ClassVariable_Locked_Get(handle CGoHandle) C.char {
|
3128
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3129
|
-
return boolGoToPy(op.Locked)
|
3130
|
-
}
|
3131
|
-
|
3132
|
-
//export api_ClassVariable_Locked_Set
|
3133
|
-
func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
|
3134
|
-
op := ptrFromHandle_api_ClassVariable(handle)
|
3135
|
-
op.Locked = boolPyToGo(val)
|
3185
|
+
//export api_VMError_CTor
|
3186
|
+
func api_VMError_CTor() CGoHandle {
|
3187
|
+
return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
|
3136
3188
|
}
|
3137
3189
|
|
3138
|
-
//
|
3139
|
-
|
3140
|
-
|
3141
|
-
|
3142
|
-
return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
|
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))
|
3143
3194
|
}
|
3144
3195
|
|
3145
|
-
//export
|
3146
|
-
func
|
3147
|
-
op :=
|
3148
|
-
|
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))
|
3149
3200
|
}
|
3150
3201
|
|
3151
|
-
//export
|
3152
|
-
func
|
3153
|
-
op :=
|
3154
|
-
op.
|
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)
|
3155
3206
|
}
|
3156
3207
|
|
3157
|
-
//export
|
3158
|
-
func
|
3159
|
-
op :=
|
3160
|
-
|
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)
|
3161
3212
|
}
|
3162
3213
|
|
3163
|
-
//export
|
3164
|
-
func
|
3165
|
-
op :=
|
3166
|
-
op.
|
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)
|
3167
3218
|
}
|
3168
3219
|
|
3169
|
-
//export
|
3170
|
-
func
|
3171
|
-
op :=
|
3172
|
-
|
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)
|
3173
3224
|
}
|
3174
3225
|
|
3175
|
-
//export
|
3176
|
-
func
|
3177
|
-
op :=
|
3178
|
-
|
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))
|
3179
3230
|
}
|
3180
3231
|
|
3181
|
-
//
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3185
|
-
return CGoHandle(handleFromPtr_api_GoValue(&api.GoValue{}))
|
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))
|
3186
3236
|
}
|
3187
3237
|
|
3188
|
-
//export
|
3189
|
-
func
|
3238
|
+
//export api_VMError_Error
|
3239
|
+
func api_VMError_Error(_handle CGoHandle) *C.char {
|
3190
3240
|
_saved_thread := C.PyEval_SaveThread()
|
3191
3241
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3192
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3242
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3193
3243
|
if __err != nil {
|
3194
3244
|
return C.CString("")
|
3195
3245
|
}
|
3196
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.
|
3246
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Error())
|
3197
3247
|
|
3198
3248
|
}
|
3199
3249
|
|
3200
|
-
//export
|
3201
|
-
func
|
3250
|
+
//export api_VMError_Unwrap
|
3251
|
+
func api_VMError_Unwrap(_handle CGoHandle) *C.char {
|
3202
3252
|
_saved_thread := C.PyEval_SaveThread()
|
3203
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3253
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3204
3254
|
if __err != nil {
|
3205
|
-
return
|
3255
|
+
return errorGoToPy(nil)
|
3206
3256
|
}
|
3207
|
-
|
3257
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Unwrap()
|
3208
3258
|
|
3209
3259
|
C.PyEval_RestoreThread(_saved_thread)
|
3210
3260
|
if __err != nil {
|
3211
3261
|
estr := C.CString(__err.Error())
|
3212
3262
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3213
|
-
|
3214
|
-
return handleFromPtr_Slice_byte(nil)
|
3263
|
+
return estr
|
3215
3264
|
}
|
3216
|
-
return
|
3265
|
+
return C.CString("")
|
3217
3266
|
}
|
3218
3267
|
|
3219
|
-
//export
|
3220
|
-
func
|
3268
|
+
//export api_VMError_IsCompileError
|
3269
|
+
func api_VMError_IsCompileError(_handle CGoHandle) C.char {
|
3221
3270
|
_saved_thread := C.PyEval_SaveThread()
|
3222
3271
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3223
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.
|
3224
|
-
if __err != nil {
|
3225
|
-
return C.CString("")
|
3226
|
-
}
|
3227
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Type())
|
3228
|
-
|
3229
|
-
}
|
3230
|
-
|
3231
|
-
//export api_GoValue_Int
|
3232
|
-
func api_GoValue_Int(_handle CGoHandle) C.longlong {
|
3233
|
-
_saved_thread := C.PyEval_SaveThread()
|
3234
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3235
|
-
if __err != nil {
|
3236
|
-
return C.longlong(0)
|
3237
|
-
}
|
3238
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Int()
|
3239
|
-
|
3240
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3241
|
-
if __err != nil {
|
3242
|
-
estr := C.CString(__err.Error())
|
3243
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3244
|
-
C.free(unsafe.Pointer(estr))
|
3245
|
-
return C.longlong(0)
|
3246
|
-
}
|
3247
|
-
return C.longlong(cret)
|
3248
|
-
}
|
3249
|
-
|
3250
|
-
//export api_GoValue_Float
|
3251
|
-
func api_GoValue_Float(_handle CGoHandle) C.double {
|
3252
|
-
_saved_thread := C.PyEval_SaveThread()
|
3253
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3254
|
-
if __err != nil {
|
3255
|
-
return C.double(0)
|
3256
|
-
}
|
3257
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).Float()
|
3258
|
-
|
3259
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3260
|
-
if __err != nil {
|
3261
|
-
estr := C.CString(__err.Error())
|
3262
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3263
|
-
C.free(unsafe.Pointer(estr))
|
3264
|
-
return C.double(0)
|
3265
|
-
}
|
3266
|
-
return C.double(cret)
|
3267
|
-
}
|
3268
|
-
|
3269
|
-
//export api_GoValue_String
|
3270
|
-
func api_GoValue_String(_handle CGoHandle) *C.char {
|
3271
|
-
_saved_thread := C.PyEval_SaveThread()
|
3272
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3273
|
-
if __err != nil {
|
3274
|
-
return C.CString("")
|
3275
|
-
}
|
3276
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(api.GoValue{})).(*api.GoValue).String()
|
3277
|
-
|
3278
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3279
|
-
if __err != nil {
|
3280
|
-
estr := C.CString(__err.Error())
|
3281
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3282
|
-
C.free(unsafe.Pointer(estr))
|
3283
|
-
return C.CString("")
|
3284
|
-
}
|
3285
|
-
return C.CString(cret)
|
3286
|
-
}
|
3287
|
-
|
3288
|
-
//export api_GoValue_Bool
|
3289
|
-
func api_GoValue_Bool(_handle CGoHandle) C.char {
|
3290
|
-
_saved_thread := C.PyEval_SaveThread()
|
3291
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.GoValue")
|
3272
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3292
3273
|
if __err != nil {
|
3293
3274
|
return boolGoToPy(false)
|
3294
3275
|
}
|
3295
|
-
|
3276
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsCompileError())
|
3296
3277
|
|
3297
|
-
|
3278
|
+
}
|
3279
|
+
|
3280
|
+
//export api_VMError_IsRuntimeError
|
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")
|
3298
3285
|
if __err != nil {
|
3299
|
-
estr := C.CString(__err.Error())
|
3300
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3301
|
-
C.free(unsafe.Pointer(estr))
|
3302
3286
|
return boolGoToPy(false)
|
3303
3287
|
}
|
3304
|
-
return boolGoToPy(
|
3288
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsRuntimeError())
|
3289
|
+
|
3305
3290
|
}
|
3306
3291
|
|
3307
|
-
//export
|
3308
|
-
func
|
3292
|
+
//export api_VMError_IsTimeoutError
|
3293
|
+
func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
|
3309
3294
|
_saved_thread := C.PyEval_SaveThread()
|
3310
|
-
|
3295
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3296
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3311
3297
|
if __err != nil {
|
3312
|
-
return
|
3298
|
+
return boolGoToPy(false)
|
3313
3299
|
}
|
3314
|
-
|
3300
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsTimeoutError())
|
3315
3301
|
|
3316
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3317
|
-
if __err != nil {
|
3318
|
-
estr := C.CString(__err.Error())
|
3319
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3320
|
-
C.free(unsafe.Pointer(estr))
|
3321
|
-
return handleFromPtr_Slice_api_GoValue(nil)
|
3322
|
-
}
|
3323
|
-
return handleFromPtr_Slice_api_GoValue(&cret)
|
3324
3302
|
}
|
3325
3303
|
|
3326
|
-
//export
|
3327
|
-
func
|
3304
|
+
//export api_VMError_IsConversionError
|
3305
|
+
func api_VMError_IsConversionError(_handle CGoHandle) C.char {
|
3328
3306
|
_saved_thread := C.PyEval_SaveThread()
|
3329
|
-
|
3307
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3308
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3330
3309
|
if __err != nil {
|
3331
|
-
return
|
3310
|
+
return boolGoToPy(false)
|
3332
3311
|
}
|
3333
|
-
|
3312
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
|
3334
3313
|
|
3335
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3336
|
-
if __err != nil {
|
3337
|
-
estr := C.CString(__err.Error())
|
3338
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3339
|
-
C.free(unsafe.Pointer(estr))
|
3340
|
-
return handleFromPtr_Map_string_api_GoValue(nil)
|
3341
|
-
}
|
3342
|
-
return handleFromPtr_Map_string_api_GoValue(&cret)
|
3343
3314
|
}
|
3344
3315
|
|
3345
|
-
//export
|
3346
|
-
func
|
3316
|
+
//export api_VMError_IsConfigError
|
3317
|
+
func api_VMError_IsConfigError(_handle CGoHandle) C.char {
|
3347
3318
|
_saved_thread := C.PyEval_SaveThread()
|
3348
|
-
|
3319
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3320
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
|
3349
3321
|
if __err != nil {
|
3350
|
-
return
|
3322
|
+
return boolGoToPy(false)
|
3351
3323
|
}
|
3352
|
-
|
3324
|
+
return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
|
3353
3325
|
|
3354
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3355
|
-
if __err != nil {
|
3356
|
-
estr := C.CString(__err.Error())
|
3357
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3358
|
-
C.free(unsafe.Pointer(estr))
|
3359
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3360
|
-
}
|
3361
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
3362
3326
|
}
|
3363
3327
|
|
3364
|
-
// --- wrapping struct: api.
|
3328
|
+
// --- wrapping struct: api.ExecutionResult ---
|
3365
3329
|
//
|
3366
|
-
//export
|
3367
|
-
func
|
3368
|
-
return CGoHandle(
|
3330
|
+
//export api_ExecutionResult_CTor
|
3331
|
+
func api_ExecutionResult_CTor() CGoHandle {
|
3332
|
+
return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
|
3333
|
+
}
|
3334
|
+
|
3335
|
+
//export api_ExecutionResult_Value_Get
|
3336
|
+
func api_ExecutionResult_Value_Get(handle CGoHandle) CGoHandle {
|
3337
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
3338
|
+
return handleFromPtr_api_GoValue(&op.Value)
|
3339
|
+
}
|
3340
|
+
|
3341
|
+
//export api_ExecutionResult_Value_Set
|
3342
|
+
func api_ExecutionResult_Value_Set(handle CGoHandle, val CGoHandle) {
|
3343
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
3344
|
+
op.Value = *ptrFromHandle_api_GoValue(val)
|
3345
|
+
}
|
3346
|
+
|
3347
|
+
//export api_ExecutionResult_RawValue_Get
|
3348
|
+
func api_ExecutionResult_RawValue_Get(handle CGoHandle) CGoHandle {
|
3349
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
3350
|
+
return handleFromPtr_environment_Value(op.RawValue)
|
3351
|
+
}
|
3352
|
+
|
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
|
+
}
|
3358
|
+
|
3359
|
+
//export api_ExecutionResult_Output_Get
|
3360
|
+
func api_ExecutionResult_Output_Get(handle CGoHandle) *C.char {
|
3361
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
3362
|
+
return C.CString(op.Output)
|
3363
|
+
}
|
3364
|
+
|
3365
|
+
//export api_ExecutionResult_Output_Set
|
3366
|
+
func api_ExecutionResult_Output_Set(handle CGoHandle, val *C.char) {
|
3367
|
+
op := ptrFromHandle_api_ExecutionResult(handle)
|
3368
|
+
op.Output = C.GoString(val)
|
3369
3369
|
}
|
3370
3370
|
|
3371
3371
|
// ---- Slices ---
|
@@ -3374,52 +3374,73 @@ func api_UnknownFunctionHandler_CTor() CGoHandle {
|
|
3374
3374
|
|
3375
3375
|
// ---- Constructors ---
|
3376
3376
|
|
3377
|
-
//export
|
3378
|
-
func
|
3377
|
+
//export api_ToGoValue
|
3378
|
+
func api_ToGoValue(val CGoHandle) CGoHandle {
|
3379
|
+
_saved_thread := C.PyEval_SaveThread()
|
3380
|
+
cret, __err := api.ToGoValue(ptrFromHandle_environment_Value(val))
|
3381
|
+
|
3382
|
+
C.PyEval_RestoreThread(_saved_thread)
|
3383
|
+
if __err != nil {
|
3384
|
+
estr := C.CString(__err.Error())
|
3385
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3386
|
+
C.free(unsafe.Pointer(estr))
|
3387
|
+
return handleFromPtr_api_GoValue(nil)
|
3388
|
+
}
|
3389
|
+
return handleFromPtr_api_GoValue(&cret)
|
3390
|
+
}
|
3391
|
+
|
3392
|
+
//export api_WrapString
|
3393
|
+
func api_WrapString(value *C.char) CGoHandle {
|
3379
3394
|
_saved_thread := C.PyEval_SaveThread()
|
3380
3395
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3381
|
-
|
3396
|
+
cret := api.WrapString(C.GoString(value))
|
3382
3397
|
|
3398
|
+
return handleFromPtr_api_GoValue(&cret)
|
3383
3399
|
}
|
3384
3400
|
|
3385
|
-
//export
|
3386
|
-
func
|
3401
|
+
//export api_WrapBool
|
3402
|
+
func api_WrapBool(value C.char) CGoHandle {
|
3387
3403
|
_saved_thread := C.PyEval_SaveThread()
|
3388
3404
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3389
|
-
|
3405
|
+
cret := api.WrapBool(boolPyToGo(value))
|
3390
3406
|
|
3407
|
+
return handleFromPtr_api_GoValue(&cret)
|
3391
3408
|
}
|
3392
3409
|
|
3393
|
-
//export
|
3394
|
-
func
|
3410
|
+
//export api_WrapFloat
|
3411
|
+
func api_WrapFloat(value C.double) CGoHandle {
|
3395
3412
|
_saved_thread := C.PyEval_SaveThread()
|
3396
3413
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3397
|
-
|
3414
|
+
cret := api.WrapFloat(float64(value))
|
3398
3415
|
|
3416
|
+
return handleFromPtr_api_GoValue(&cret)
|
3399
3417
|
}
|
3400
3418
|
|
3401
|
-
//export
|
3402
|
-
func
|
3419
|
+
//export api_WrapInt
|
3420
|
+
func api_WrapInt(value C.longlong) CGoHandle {
|
3403
3421
|
_saved_thread := C.PyEval_SaveThread()
|
3404
3422
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3405
|
-
|
3423
|
+
cret := api.WrapInt(int64(value))
|
3406
3424
|
|
3425
|
+
return handleFromPtr_api_GoValue(&cret)
|
3407
3426
|
}
|
3408
3427
|
|
3409
|
-
//export
|
3410
|
-
func
|
3428
|
+
//export api_WrapObject
|
3429
|
+
func api_WrapObject(value CGoHandle) CGoHandle {
|
3411
3430
|
_saved_thread := C.PyEval_SaveThread()
|
3412
3431
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3413
|
-
|
3432
|
+
cret := api.WrapObject(ptrFromHandle_Ptr_environment_ObjectInstance(value))
|
3414
3433
|
|
3434
|
+
return handleFromPtr_api_GoValue(&cret)
|
3415
3435
|
}
|
3416
3436
|
|
3417
|
-
//export
|
3418
|
-
func
|
3437
|
+
//export api_WrapAny
|
3438
|
+
func api_WrapAny(value *C.char) CGoHandle {
|
3419
3439
|
_saved_thread := C.PyEval_SaveThread()
|
3420
3440
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3421
|
-
|
3441
|
+
cret := api.WrapAny(C.GoString(value))
|
3422
3442
|
|
3443
|
+
return handleFromPtr_api_GoValue(&cret)
|
3423
3444
|
}
|
3424
3445
|
|
3425
3446
|
//export api_NewVM
|
@@ -3437,6 +3458,14 @@ func api_NewVM(config CGoHandle) CGoHandle {
|
|
3437
3458
|
return handleFromPtr_Ptr_api_VM(cret)
|
3438
3459
|
}
|
3439
3460
|
|
3461
|
+
//export api_NewClassDefinition
|
3462
|
+
func api_NewClassDefinition() CGoHandle {
|
3463
|
+
_saved_thread := C.PyEval_SaveThread()
|
3464
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
3465
|
+
return handleFromPtr_Ptr_api_ClassDefinition(api.NewClassDefinition())
|
3466
|
+
|
3467
|
+
}
|
3468
|
+
|
3440
3469
|
//export api_DefaultConfig
|
3441
3470
|
func api_DefaultConfig() CGoHandle {
|
3442
3471
|
_saved_thread := C.PyEval_SaveThread()
|
@@ -3445,77 +3474,63 @@ func api_DefaultConfig() CGoHandle {
|
|
3445
3474
|
|
3446
3475
|
}
|
3447
3476
|
|
3448
|
-
//export
|
3449
|
-
func
|
3477
|
+
//export api_NewRuntimeError
|
3478
|
+
func api_NewRuntimeError(message *C.char, source CGoHandle) CGoHandle {
|
3450
3479
|
_saved_thread := C.PyEval_SaveThread()
|
3451
3480
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3452
|
-
|
3481
|
+
return handleFromPtr_Ptr_api_VMError(api.NewRuntimeError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3453
3482
|
|
3454
|
-
return handleFromPtr_api_GoValue(&cret)
|
3455
3483
|
}
|
3456
3484
|
|
3457
|
-
//export
|
3458
|
-
func
|
3485
|
+
//export api_NewCompileError
|
3486
|
+
func api_NewCompileError(message *C.char, source CGoHandle) CGoHandle {
|
3459
3487
|
_saved_thread := C.PyEval_SaveThread()
|
3460
3488
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3461
|
-
|
3489
|
+
return handleFromPtr_Ptr_api_VMError(api.NewCompileError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
|
3462
3490
|
|
3463
|
-
return handleFromPtr_api_GoValue(&cret)
|
3464
3491
|
}
|
3465
3492
|
|
3466
|
-
//export
|
3467
|
-
func
|
3493
|
+
//export api_NewConfigError
|
3494
|
+
func api_NewConfigError(message *C.char, wrapped *C.char) CGoHandle {
|
3468
3495
|
_saved_thread := C.PyEval_SaveThread()
|
3469
3496
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3470
|
-
|
3497
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConfigError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3471
3498
|
|
3472
|
-
return handleFromPtr_api_GoValue(&cret)
|
3473
3499
|
}
|
3474
3500
|
|
3475
|
-
//export
|
3476
|
-
func
|
3501
|
+
//export api_NewConversionError
|
3502
|
+
func api_NewConversionError(message *C.char, wrapped *C.char) CGoHandle {
|
3477
3503
|
_saved_thread := C.PyEval_SaveThread()
|
3478
3504
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3479
|
-
|
3505
|
+
return handleFromPtr_Ptr_api_VMError(api.NewConversionError(C.GoString(message), errors.New(C.GoString(wrapped))))
|
3480
3506
|
|
3481
|
-
return handleFromPtr_api_GoValue(&cret)
|
3482
3507
|
}
|
3483
3508
|
|
3484
|
-
//export
|
3485
|
-
func
|
3509
|
+
//export api_NewTimeoutError
|
3510
|
+
func api_NewTimeoutError(duration C.longlong) CGoHandle {
|
3486
3511
|
_saved_thread := C.PyEval_SaveThread()
|
3487
3512
|
defer C.PyEval_RestoreThread(_saved_thread)
|
3488
|
-
|
3513
|
+
return handleFromPtr_Ptr_api_VMError(api.NewTimeoutError(time.Duration(int64(duration))))
|
3489
3514
|
|
3490
|
-
return handleFromPtr_api_GoValue(&cret)
|
3491
3515
|
}
|
3492
3516
|
|
3493
|
-
//
|
3494
|
-
|
3517
|
+
// ---- Functions ---
|
3518
|
+
|
3519
|
+
//export api_LookupObject
|
3520
|
+
func api_LookupObject(id *C.char) CGoHandle {
|
3495
3521
|
_saved_thread := C.PyEval_SaveThread()
|
3496
|
-
cret, __err := api.
|
3522
|
+
cret, __err := api.LookupObject(C.GoString(id))
|
3497
3523
|
|
3498
3524
|
C.PyEval_RestoreThread(_saved_thread)
|
3499
3525
|
if __err != nil {
|
3500
3526
|
estr := C.CString(__err.Error())
|
3501
3527
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3502
3528
|
C.free(unsafe.Pointer(estr))
|
3503
|
-
return
|
3529
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3504
3530
|
}
|
3505
|
-
return
|
3506
|
-
}
|
3507
|
-
|
3508
|
-
//export api_WrapBool
|
3509
|
-
func api_WrapBool(value C.char) CGoHandle {
|
3510
|
-
_saved_thread := C.PyEval_SaveThread()
|
3511
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
3512
|
-
cret := api.WrapBool(boolPyToGo(value))
|
3513
|
-
|
3514
|
-
return handleFromPtr_api_GoValue(&cret)
|
3531
|
+
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
3515
3532
|
}
|
3516
3533
|
|
3517
|
-
// ---- Functions ---
|
3518
|
-
|
3519
3534
|
//export api_ConvertArguments
|
3520
3535
|
func api_ConvertArguments(args CGoHandle) CGoHandle {
|
3521
3536
|
_saved_thread := C.PyEval_SaveThread()
|
@@ -3545,18 +3560,3 @@ func api_FromGoValue(val CGoHandle) CGoHandle {
|
|
3545
3560
|
}
|
3546
3561
|
return handleFromPtr_environment_Value(cret)
|
3547
3562
|
}
|
3548
|
-
|
3549
|
-
//export api_LookupObject
|
3550
|
-
func api_LookupObject(id *C.char) CGoHandle {
|
3551
|
-
_saved_thread := C.PyEval_SaveThread()
|
3552
|
-
cret, __err := api.LookupObject(C.GoString(id))
|
3553
|
-
|
3554
|
-
C.PyEval_RestoreThread(_saved_thread)
|
3555
|
-
if __err != nil {
|
3556
|
-
estr := C.CString(__err.Error())
|
3557
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
3558
|
-
C.free(unsafe.Pointer(estr))
|
3559
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(nil)
|
3560
|
-
}
|
3561
|
-
return handleFromPtr_Ptr_environment_ObjectInstance(cret)
|
3562
|
-
}
|