objective-lol 0.0.1__cp312-cp312-macosx_11_0_arm64.whl → 0.0.2__cp312-cp312-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.go CHANGED
@@ -2406,268 +2406,6 @@ func api_ClassVariable_Locked_Set(handle CGoHandle, val C.char) {
2406
2406
  op.Locked = boolPyToGo(val)
2407
2407
  }
2408
2408
 
2409
- // --- wrapping struct: api.ExecutionResult ---
2410
- //
2411
- //export api_ExecutionResult_CTor
2412
- func api_ExecutionResult_CTor() CGoHandle {
2413
- return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
2414
- }
2415
-
2416
- //export api_ExecutionResult_Value_Get
2417
- func api_ExecutionResult_Value_Get(handle CGoHandle) CGoHandle {
2418
- op := ptrFromHandle_api_ExecutionResult(handle)
2419
- return handleFromPtr_api_GoValue(&op.Value)
2420
- }
2421
-
2422
- //export api_ExecutionResult_Value_Set
2423
- func api_ExecutionResult_Value_Set(handle CGoHandle, val CGoHandle) {
2424
- op := ptrFromHandle_api_ExecutionResult(handle)
2425
- op.Value = *ptrFromHandle_api_GoValue(val)
2426
- }
2427
-
2428
- //export api_ExecutionResult_RawValue_Get
2429
- func api_ExecutionResult_RawValue_Get(handle CGoHandle) CGoHandle {
2430
- op := ptrFromHandle_api_ExecutionResult(handle)
2431
- return handleFromPtr_environment_Value(op.RawValue)
2432
- }
2433
-
2434
- //export api_ExecutionResult_RawValue_Set
2435
- func api_ExecutionResult_RawValue_Set(handle CGoHandle, val CGoHandle) {
2436
- op := ptrFromHandle_api_ExecutionResult(handle)
2437
- op.RawValue = ptrFromHandle_environment_Value(val)
2438
- }
2439
-
2440
- //export api_ExecutionResult_Output_Get
2441
- func api_ExecutionResult_Output_Get(handle CGoHandle) *C.char {
2442
- op := ptrFromHandle_api_ExecutionResult(handle)
2443
- return C.CString(op.Output)
2444
- }
2445
-
2446
- //export api_ExecutionResult_Output_Set
2447
- func api_ExecutionResult_Output_Set(handle CGoHandle, val *C.char) {
2448
- op := ptrFromHandle_api_ExecutionResult(handle)
2449
- op.Output = C.GoString(val)
2450
- }
2451
-
2452
- // --- wrapping struct: api.SourceLocation ---
2453
- //
2454
- //export api_SourceLocation_CTor
2455
- func api_SourceLocation_CTor() CGoHandle {
2456
- return CGoHandle(handleFromPtr_api_SourceLocation(&api.SourceLocation{}))
2457
- }
2458
-
2459
- //export api_SourceLocation_Filename_Get
2460
- func api_SourceLocation_Filename_Get(handle CGoHandle) *C.char {
2461
- op := ptrFromHandle_api_SourceLocation(handle)
2462
- return C.CString(op.Filename)
2463
- }
2464
-
2465
- //export api_SourceLocation_Filename_Set
2466
- func api_SourceLocation_Filename_Set(handle CGoHandle, val *C.char) {
2467
- op := ptrFromHandle_api_SourceLocation(handle)
2468
- op.Filename = C.GoString(val)
2469
- }
2470
-
2471
- //export api_SourceLocation_Line_Get
2472
- func api_SourceLocation_Line_Get(handle CGoHandle) C.longlong {
2473
- op := ptrFromHandle_api_SourceLocation(handle)
2474
- return C.longlong(op.Line)
2475
- }
2476
-
2477
- //export api_SourceLocation_Line_Set
2478
- func api_SourceLocation_Line_Set(handle CGoHandle, val C.longlong) {
2479
- op := ptrFromHandle_api_SourceLocation(handle)
2480
- op.Line = int(val)
2481
- }
2482
-
2483
- //export api_SourceLocation_Column_Get
2484
- func api_SourceLocation_Column_Get(handle CGoHandle) C.longlong {
2485
- op := ptrFromHandle_api_SourceLocation(handle)
2486
- return C.longlong(op.Column)
2487
- }
2488
-
2489
- //export api_SourceLocation_Column_Set
2490
- func api_SourceLocation_Column_Set(handle CGoHandle, val C.longlong) {
2491
- op := ptrFromHandle_api_SourceLocation(handle)
2492
- op.Column = int(val)
2493
- }
2494
-
2495
- // --- wrapping struct: api.VMError ---
2496
- //
2497
- //export api_VMError_CTor
2498
- func api_VMError_CTor() CGoHandle {
2499
- return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
2500
- }
2501
-
2502
- //export api_VMError_Type_Get
2503
- func api_VMError_Type_Get(handle CGoHandle) *C.char {
2504
- op := ptrFromHandle_api_VMError(handle)
2505
- return C.CString(string(op.Type))
2506
- }
2507
-
2508
- //export api_VMError_Type_Set
2509
- func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
2510
- op := ptrFromHandle_api_VMError(handle)
2511
- op.Type = api.ErrorType(C.GoString(val))
2512
- }
2513
-
2514
- //export api_VMError_Message_Get
2515
- func api_VMError_Message_Get(handle CGoHandle) *C.char {
2516
- op := ptrFromHandle_api_VMError(handle)
2517
- return C.CString(op.Message)
2518
- }
2519
-
2520
- //export api_VMError_Message_Set
2521
- func api_VMError_Message_Set(handle CGoHandle, val *C.char) {
2522
- op := ptrFromHandle_api_VMError(handle)
2523
- op.Message = C.GoString(val)
2524
- }
2525
-
2526
- //export api_VMError_Source_Get
2527
- func api_VMError_Source_Get(handle CGoHandle) CGoHandle {
2528
- op := ptrFromHandle_api_VMError(handle)
2529
- return handleFromPtr_Ptr_api_SourceLocation(op.Source)
2530
- }
2531
-
2532
- //export api_VMError_Source_Set
2533
- func api_VMError_Source_Set(handle CGoHandle, val CGoHandle) {
2534
- op := ptrFromHandle_api_VMError(handle)
2535
- op.Source = ptrFromHandle_Ptr_api_SourceLocation(val)
2536
- }
2537
-
2538
- //export api_VMError_Duration_Get
2539
- func api_VMError_Duration_Get(handle CGoHandle) C.longlong {
2540
- op := ptrFromHandle_api_VMError(handle)
2541
- return C.longlong(int64(op.Duration))
2542
- }
2543
-
2544
- //export api_VMError_Duration_Set
2545
- func api_VMError_Duration_Set(handle CGoHandle, val C.longlong) {
2546
- op := ptrFromHandle_api_VMError(handle)
2547
- op.Duration = time.Duration(int64(val))
2548
- }
2549
-
2550
- //export api_VMError_Error
2551
- func api_VMError_Error(_handle CGoHandle) *C.char {
2552
- _saved_thread := C.PyEval_SaveThread()
2553
- defer C.PyEval_RestoreThread(_saved_thread)
2554
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2555
- if __err != nil {
2556
- return C.CString("")
2557
- }
2558
- return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Error())
2559
-
2560
- }
2561
-
2562
- //export api_VMError_Unwrap
2563
- func api_VMError_Unwrap(_handle CGoHandle) *C.char {
2564
- _saved_thread := C.PyEval_SaveThread()
2565
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2566
- if __err != nil {
2567
- return errorGoToPy(nil)
2568
- }
2569
- __err = gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Unwrap()
2570
-
2571
- C.PyEval_RestoreThread(_saved_thread)
2572
- if __err != nil {
2573
- estr := C.CString(__err.Error())
2574
- C.PyErr_SetString(C.PyExc_RuntimeError, estr)
2575
- return estr
2576
- }
2577
- return C.CString("")
2578
- }
2579
-
2580
- //export api_VMError_IsCompileError
2581
- func api_VMError_IsCompileError(_handle CGoHandle) C.char {
2582
- _saved_thread := C.PyEval_SaveThread()
2583
- defer C.PyEval_RestoreThread(_saved_thread)
2584
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2585
- if __err != nil {
2586
- return boolGoToPy(false)
2587
- }
2588
- return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsCompileError())
2589
-
2590
- }
2591
-
2592
- //export api_VMError_IsRuntimeError
2593
- func api_VMError_IsRuntimeError(_handle CGoHandle) C.char {
2594
- _saved_thread := C.PyEval_SaveThread()
2595
- defer C.PyEval_RestoreThread(_saved_thread)
2596
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2597
- if __err != nil {
2598
- return boolGoToPy(false)
2599
- }
2600
- return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsRuntimeError())
2601
-
2602
- }
2603
-
2604
- //export api_VMError_IsTimeoutError
2605
- func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
2606
- _saved_thread := C.PyEval_SaveThread()
2607
- defer C.PyEval_RestoreThread(_saved_thread)
2608
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2609
- if __err != nil {
2610
- return boolGoToPy(false)
2611
- }
2612
- return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsTimeoutError())
2613
-
2614
- }
2615
-
2616
- //export api_VMError_IsConversionError
2617
- func api_VMError_IsConversionError(_handle CGoHandle) C.char {
2618
- _saved_thread := C.PyEval_SaveThread()
2619
- defer C.PyEval_RestoreThread(_saved_thread)
2620
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2621
- if __err != nil {
2622
- return boolGoToPy(false)
2623
- }
2624
- return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
2625
-
2626
- }
2627
-
2628
- //export api_VMError_IsConfigError
2629
- func api_VMError_IsConfigError(_handle CGoHandle) C.char {
2630
- _saved_thread := C.PyEval_SaveThread()
2631
- defer C.PyEval_RestoreThread(_saved_thread)
2632
- vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
2633
- if __err != nil {
2634
- return boolGoToPy(false)
2635
- }
2636
- return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
2637
-
2638
- }
2639
-
2640
- // --- wrapping struct: api.ClassMethod ---
2641
- //
2642
- //export api_ClassMethod_CTor
2643
- func api_ClassMethod_CTor() CGoHandle {
2644
- return CGoHandle(handleFromPtr_api_ClassMethod(&api.ClassMethod{}))
2645
- }
2646
-
2647
- //export api_ClassMethod_Name_Get
2648
- func api_ClassMethod_Name_Get(handle CGoHandle) *C.char {
2649
- op := ptrFromHandle_api_ClassMethod(handle)
2650
- return C.CString(op.Name)
2651
- }
2652
-
2653
- //export api_ClassMethod_Name_Set
2654
- func api_ClassMethod_Name_Set(handle CGoHandle, val *C.char) {
2655
- op := ptrFromHandle_api_ClassMethod(handle)
2656
- op.Name = C.GoString(val)
2657
- }
2658
-
2659
- //export api_ClassMethod_Argc_Get
2660
- func api_ClassMethod_Argc_Get(handle CGoHandle) C.longlong {
2661
- op := ptrFromHandle_api_ClassMethod(handle)
2662
- return C.longlong(op.Argc)
2663
- }
2664
-
2665
- //export api_ClassMethod_Argc_Set
2666
- func api_ClassMethod_Argc_Set(handle CGoHandle, val C.longlong) {
2667
- op := ptrFromHandle_api_ClassMethod(handle)
2668
- op.Argc = int(val)
2669
- }
2670
-
2671
2409
  // --- wrapping struct: api.GoValue ---
2672
2410
  //
2673
2411
  //export api_GoValue_CTor
@@ -2851,11 +2589,47 @@ func api_GoValue_Object(_handle CGoHandle) CGoHandle {
2851
2589
  return handleFromPtr_Ptr_environment_ObjectInstance(cret)
2852
2590
  }
2853
2591
 
2854
- // --- wrapping struct: api.UnknownFunctionHandler ---
2592
+ // --- wrapping struct: api.SourceLocation ---
2855
2593
  //
2856
- //export api_UnknownFunctionHandler_CTor
2857
- func api_UnknownFunctionHandler_CTor() CGoHandle {
2858
- return CGoHandle(handleFromPtr_api_UnknownFunctionHandler(&api.UnknownFunctionHandler{}))
2594
+ //export api_SourceLocation_CTor
2595
+ func api_SourceLocation_CTor() CGoHandle {
2596
+ return CGoHandle(handleFromPtr_api_SourceLocation(&api.SourceLocation{}))
2597
+ }
2598
+
2599
+ //export api_SourceLocation_Filename_Get
2600
+ func api_SourceLocation_Filename_Get(handle CGoHandle) *C.char {
2601
+ op := ptrFromHandle_api_SourceLocation(handle)
2602
+ return C.CString(op.Filename)
2603
+ }
2604
+
2605
+ //export api_SourceLocation_Filename_Set
2606
+ func api_SourceLocation_Filename_Set(handle CGoHandle, val *C.char) {
2607
+ op := ptrFromHandle_api_SourceLocation(handle)
2608
+ op.Filename = C.GoString(val)
2609
+ }
2610
+
2611
+ //export api_SourceLocation_Line_Get
2612
+ func api_SourceLocation_Line_Get(handle CGoHandle) C.longlong {
2613
+ op := ptrFromHandle_api_SourceLocation(handle)
2614
+ return C.longlong(op.Line)
2615
+ }
2616
+
2617
+ //export api_SourceLocation_Line_Set
2618
+ func api_SourceLocation_Line_Set(handle CGoHandle, val C.longlong) {
2619
+ op := ptrFromHandle_api_SourceLocation(handle)
2620
+ op.Line = int(val)
2621
+ }
2622
+
2623
+ //export api_SourceLocation_Column_Get
2624
+ func api_SourceLocation_Column_Get(handle CGoHandle) C.longlong {
2625
+ op := ptrFromHandle_api_SourceLocation(handle)
2626
+ return C.longlong(op.Column)
2627
+ }
2628
+
2629
+ //export api_SourceLocation_Column_Set
2630
+ func api_SourceLocation_Column_Set(handle CGoHandle, val C.longlong) {
2631
+ op := ptrFromHandle_api_SourceLocation(handle)
2632
+ op.Column = int(val)
2859
2633
  }
2860
2634
 
2861
2635
  // --- wrapping struct: api.VM ---
@@ -3295,6 +3069,87 @@ func api_VMCompatibilityShim_AddVariableToObject(_handle CGoHandle, id *C.char,
3295
3069
  return C.CString("")
3296
3070
  }
3297
3071
 
3072
+ // --- wrapping struct: api.ClassMethod ---
3073
+ //
3074
+ //export api_ClassMethod_CTor
3075
+ func api_ClassMethod_CTor() CGoHandle {
3076
+ return CGoHandle(handleFromPtr_api_ClassMethod(&api.ClassMethod{}))
3077
+ }
3078
+
3079
+ //export api_ClassMethod_Name_Get
3080
+ func api_ClassMethod_Name_Get(handle CGoHandle) *C.char {
3081
+ op := ptrFromHandle_api_ClassMethod(handle)
3082
+ return C.CString(op.Name)
3083
+ }
3084
+
3085
+ //export api_ClassMethod_Name_Set
3086
+ func api_ClassMethod_Name_Set(handle CGoHandle, val *C.char) {
3087
+ op := ptrFromHandle_api_ClassMethod(handle)
3088
+ op.Name = C.GoString(val)
3089
+ }
3090
+
3091
+ //export api_ClassMethod_Argc_Get
3092
+ func api_ClassMethod_Argc_Get(handle CGoHandle) C.longlong {
3093
+ op := ptrFromHandle_api_ClassMethod(handle)
3094
+ return C.longlong(op.Argc)
3095
+ }
3096
+
3097
+ //export api_ClassMethod_Argc_Set
3098
+ func api_ClassMethod_Argc_Set(handle CGoHandle, val C.longlong) {
3099
+ op := ptrFromHandle_api_ClassMethod(handle)
3100
+ op.Argc = int(val)
3101
+ }
3102
+
3103
+ // --- wrapping struct: api.ExecutionResult ---
3104
+ //
3105
+ //export api_ExecutionResult_CTor
3106
+ func api_ExecutionResult_CTor() CGoHandle {
3107
+ return CGoHandle(handleFromPtr_api_ExecutionResult(&api.ExecutionResult{}))
3108
+ }
3109
+
3110
+ //export api_ExecutionResult_Value_Get
3111
+ func api_ExecutionResult_Value_Get(handle CGoHandle) CGoHandle {
3112
+ op := ptrFromHandle_api_ExecutionResult(handle)
3113
+ return handleFromPtr_api_GoValue(&op.Value)
3114
+ }
3115
+
3116
+ //export api_ExecutionResult_Value_Set
3117
+ func api_ExecutionResult_Value_Set(handle CGoHandle, val CGoHandle) {
3118
+ op := ptrFromHandle_api_ExecutionResult(handle)
3119
+ op.Value = *ptrFromHandle_api_GoValue(val)
3120
+ }
3121
+
3122
+ //export api_ExecutionResult_RawValue_Get
3123
+ func api_ExecutionResult_RawValue_Get(handle CGoHandle) CGoHandle {
3124
+ op := ptrFromHandle_api_ExecutionResult(handle)
3125
+ return handleFromPtr_environment_Value(op.RawValue)
3126
+ }
3127
+
3128
+ //export api_ExecutionResult_RawValue_Set
3129
+ func api_ExecutionResult_RawValue_Set(handle CGoHandle, val CGoHandle) {
3130
+ op := ptrFromHandle_api_ExecutionResult(handle)
3131
+ op.RawValue = ptrFromHandle_environment_Value(val)
3132
+ }
3133
+
3134
+ //export api_ExecutionResult_Output_Get
3135
+ func api_ExecutionResult_Output_Get(handle CGoHandle) *C.char {
3136
+ op := ptrFromHandle_api_ExecutionResult(handle)
3137
+ return C.CString(op.Output)
3138
+ }
3139
+
3140
+ //export api_ExecutionResult_Output_Set
3141
+ func api_ExecutionResult_Output_Set(handle CGoHandle, val *C.char) {
3142
+ op := ptrFromHandle_api_ExecutionResult(handle)
3143
+ op.Output = C.GoString(val)
3144
+ }
3145
+
3146
+ // --- wrapping struct: api.UnknownFunctionHandler ---
3147
+ //
3148
+ //export api_UnknownFunctionHandler_CTor
3149
+ func api_UnknownFunctionHandler_CTor() CGoHandle {
3150
+ return CGoHandle(handleFromPtr_api_UnknownFunctionHandler(&api.UnknownFunctionHandler{}))
3151
+ }
3152
+
3298
3153
  // --- wrapping struct: api.VMConfig ---
3299
3154
  //
3300
3155
  //export api_VMConfig_CTor
@@ -3368,85 +3223,163 @@ func api_VMConfig_Validate(_handle CGoHandle) *C.char {
3368
3223
  return C.CString("")
3369
3224
  }
3370
3225
 
3371
- // ---- Slices ---
3226
+ // --- wrapping struct: api.VMError ---
3227
+ //
3228
+ //export api_VMError_CTor
3229
+ func api_VMError_CTor() CGoHandle {
3230
+ return CGoHandle(handleFromPtr_api_VMError(&api.VMError{}))
3231
+ }
3372
3232
 
3373
- // ---- Maps ---
3233
+ //export api_VMError_Type_Get
3234
+ func api_VMError_Type_Get(handle CGoHandle) *C.char {
3235
+ op := ptrFromHandle_api_VMError(handle)
3236
+ return C.CString(string(op.Type))
3237
+ }
3374
3238
 
3375
- // ---- Constructors ---
3239
+ //export api_VMError_Type_Set
3240
+ func api_VMError_Type_Set(handle CGoHandle, val *C.char) {
3241
+ op := ptrFromHandle_api_VMError(handle)
3242
+ op.Type = api.ErrorType(C.GoString(val))
3243
+ }
3376
3244
 
3377
- //export api_NewClassDefinition
3378
- func api_NewClassDefinition() CGoHandle {
3379
- _saved_thread := C.PyEval_SaveThread()
3380
- defer C.PyEval_RestoreThread(_saved_thread)
3381
- return handleFromPtr_Ptr_api_ClassDefinition(api.NewClassDefinition())
3245
+ //export api_VMError_Message_Get
3246
+ func api_VMError_Message_Get(handle CGoHandle) *C.char {
3247
+ op := ptrFromHandle_api_VMError(handle)
3248
+ return C.CString(op.Message)
3249
+ }
3382
3250
 
3251
+ //export api_VMError_Message_Set
3252
+ func api_VMError_Message_Set(handle CGoHandle, val *C.char) {
3253
+ op := ptrFromHandle_api_VMError(handle)
3254
+ op.Message = C.GoString(val)
3383
3255
  }
3384
3256
 
3385
- //export api_NewCompileError
3386
- func api_NewCompileError(message *C.char, source CGoHandle) CGoHandle {
3257
+ //export api_VMError_Source_Get
3258
+ func api_VMError_Source_Get(handle CGoHandle) CGoHandle {
3259
+ op := ptrFromHandle_api_VMError(handle)
3260
+ return handleFromPtr_Ptr_api_SourceLocation(op.Source)
3261
+ }
3262
+
3263
+ //export api_VMError_Source_Set
3264
+ func api_VMError_Source_Set(handle CGoHandle, val CGoHandle) {
3265
+ op := ptrFromHandle_api_VMError(handle)
3266
+ op.Source = ptrFromHandle_Ptr_api_SourceLocation(val)
3267
+ }
3268
+
3269
+ //export api_VMError_Duration_Get
3270
+ func api_VMError_Duration_Get(handle CGoHandle) C.longlong {
3271
+ op := ptrFromHandle_api_VMError(handle)
3272
+ return C.longlong(int64(op.Duration))
3273
+ }
3274
+
3275
+ //export api_VMError_Duration_Set
3276
+ func api_VMError_Duration_Set(handle CGoHandle, val C.longlong) {
3277
+ op := ptrFromHandle_api_VMError(handle)
3278
+ op.Duration = time.Duration(int64(val))
3279
+ }
3280
+
3281
+ //export api_VMError_Error
3282
+ func api_VMError_Error(_handle CGoHandle) *C.char {
3387
3283
  _saved_thread := C.PyEval_SaveThread()
3388
3284
  defer C.PyEval_RestoreThread(_saved_thread)
3389
- return handleFromPtr_Ptr_api_VMError(api.NewCompileError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
3285
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3286
+ if __err != nil {
3287
+ return C.CString("")
3288
+ }
3289
+ return C.CString(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Error())
3390
3290
 
3391
3291
  }
3392
3292
 
3393
- //export api_NewConversionError
3394
- func api_NewConversionError(message *C.char, wrapped *C.char) CGoHandle {
3293
+ //export api_VMError_Unwrap
3294
+ func api_VMError_Unwrap(_handle CGoHandle) *C.char {
3395
3295
  _saved_thread := C.PyEval_SaveThread()
3396
- defer C.PyEval_RestoreThread(_saved_thread)
3397
- return handleFromPtr_Ptr_api_VMError(api.NewConversionError(C.GoString(message), errors.New(C.GoString(wrapped))))
3296
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3297
+ if __err != nil {
3298
+ return errorGoToPy(nil)
3299
+ }
3300
+ __err = gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).Unwrap()
3398
3301
 
3302
+ C.PyEval_RestoreThread(_saved_thread)
3303
+ if __err != nil {
3304
+ estr := C.CString(__err.Error())
3305
+ C.PyErr_SetString(C.PyExc_RuntimeError, estr)
3306
+ return estr
3307
+ }
3308
+ return C.CString("")
3399
3309
  }
3400
3310
 
3401
- //export api_NewRuntimeError
3402
- func api_NewRuntimeError(message *C.char, source CGoHandle) CGoHandle {
3311
+ //export api_VMError_IsCompileError
3312
+ func api_VMError_IsCompileError(_handle CGoHandle) C.char {
3403
3313
  _saved_thread := C.PyEval_SaveThread()
3404
3314
  defer C.PyEval_RestoreThread(_saved_thread)
3405
- return handleFromPtr_Ptr_api_VMError(api.NewRuntimeError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
3315
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3316
+ if __err != nil {
3317
+ return boolGoToPy(false)
3318
+ }
3319
+ return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsCompileError())
3406
3320
 
3407
3321
  }
3408
3322
 
3409
- //export api_NewConfigError
3410
- func api_NewConfigError(message *C.char, wrapped *C.char) CGoHandle {
3323
+ //export api_VMError_IsRuntimeError
3324
+ func api_VMError_IsRuntimeError(_handle CGoHandle) C.char {
3411
3325
  _saved_thread := C.PyEval_SaveThread()
3412
3326
  defer C.PyEval_RestoreThread(_saved_thread)
3413
- return handleFromPtr_Ptr_api_VMError(api.NewConfigError(C.GoString(message), errors.New(C.GoString(wrapped))))
3327
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3328
+ if __err != nil {
3329
+ return boolGoToPy(false)
3330
+ }
3331
+ return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsRuntimeError())
3414
3332
 
3415
3333
  }
3416
3334
 
3417
- //export api_NewTimeoutError
3418
- func api_NewTimeoutError(duration C.longlong) CGoHandle {
3335
+ //export api_VMError_IsTimeoutError
3336
+ func api_VMError_IsTimeoutError(_handle CGoHandle) C.char {
3419
3337
  _saved_thread := C.PyEval_SaveThread()
3420
3338
  defer C.PyEval_RestoreThread(_saved_thread)
3421
- return handleFromPtr_Ptr_api_VMError(api.NewTimeoutError(time.Duration(int64(duration))))
3339
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3340
+ if __err != nil {
3341
+ return boolGoToPy(false)
3342
+ }
3343
+ return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsTimeoutError())
3422
3344
 
3423
3345
  }
3424
3346
 
3425
- //export api_WrapAny
3426
- func api_WrapAny(value *C.char) CGoHandle {
3347
+ //export api_VMError_IsConversionError
3348
+ func api_VMError_IsConversionError(_handle CGoHandle) C.char {
3427
3349
  _saved_thread := C.PyEval_SaveThread()
3428
3350
  defer C.PyEval_RestoreThread(_saved_thread)
3429
- cret := api.WrapAny(C.GoString(value))
3351
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3352
+ if __err != nil {
3353
+ return boolGoToPy(false)
3354
+ }
3355
+ return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConversionError())
3430
3356
 
3431
- return handleFromPtr_api_GoValue(&cret)
3432
3357
  }
3433
3358
 
3434
- //export api_WrapFloat
3435
- func api_WrapFloat(value C.double) CGoHandle {
3359
+ //export api_VMError_IsConfigError
3360
+ func api_VMError_IsConfigError(_handle CGoHandle) C.char {
3436
3361
  _saved_thread := C.PyEval_SaveThread()
3437
3362
  defer C.PyEval_RestoreThread(_saved_thread)
3438
- cret := api.WrapFloat(float64(value))
3363
+ vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*api.VMError")
3364
+ if __err != nil {
3365
+ return boolGoToPy(false)
3366
+ }
3367
+ return boolGoToPy(gopyh.Embed(vifc, reflect.TypeOf(api.VMError{})).(*api.VMError).IsConfigError())
3439
3368
 
3440
- return handleFromPtr_api_GoValue(&cret)
3441
3369
  }
3442
3370
 
3443
- //export api_WrapString
3444
- func api_WrapString(value *C.char) CGoHandle {
3371
+ // ---- Slices ---
3372
+
3373
+ // ---- Maps ---
3374
+
3375
+ // ---- Constructors ---
3376
+
3377
+ //export api_NewClassDefinition
3378
+ func api_NewClassDefinition() CGoHandle {
3445
3379
  _saved_thread := C.PyEval_SaveThread()
3446
3380
  defer C.PyEval_RestoreThread(_saved_thread)
3447
- cret := api.WrapString(C.GoString(value))
3381
+ return handleFromPtr_Ptr_api_ClassDefinition(api.NewClassDefinition())
3448
3382
 
3449
- return handleFromPtr_api_GoValue(&cret)
3450
3383
  }
3451
3384
 
3452
3385
  //export api_ToGoValue
@@ -3464,6 +3397,33 @@ func api_ToGoValue(val CGoHandle) CGoHandle {
3464
3397
  return handleFromPtr_api_GoValue(&cret)
3465
3398
  }
3466
3399
 
3400
+ //export api_WrapFloat
3401
+ func api_WrapFloat(value C.double) CGoHandle {
3402
+ _saved_thread := C.PyEval_SaveThread()
3403
+ defer C.PyEval_RestoreThread(_saved_thread)
3404
+ cret := api.WrapFloat(float64(value))
3405
+
3406
+ return handleFromPtr_api_GoValue(&cret)
3407
+ }
3408
+
3409
+ //export api_WrapObject
3410
+ func api_WrapObject(value CGoHandle) CGoHandle {
3411
+ _saved_thread := C.PyEval_SaveThread()
3412
+ defer C.PyEval_RestoreThread(_saved_thread)
3413
+ cret := api.WrapObject(ptrFromHandle_Ptr_environment_ObjectInstance(value))
3414
+
3415
+ return handleFromPtr_api_GoValue(&cret)
3416
+ }
3417
+
3418
+ //export api_WrapString
3419
+ func api_WrapString(value *C.char) CGoHandle {
3420
+ _saved_thread := C.PyEval_SaveThread()
3421
+ defer C.PyEval_RestoreThread(_saved_thread)
3422
+ cret := api.WrapString(C.GoString(value))
3423
+
3424
+ return handleFromPtr_api_GoValue(&cret)
3425
+ }
3426
+
3467
3427
  //export api_WrapBool
3468
3428
  func api_WrapBool(value C.char) CGoHandle {
3469
3429
  _saved_thread := C.PyEval_SaveThread()
@@ -3482,11 +3442,11 @@ func api_WrapInt(value C.longlong) CGoHandle {
3482
3442
  return handleFromPtr_api_GoValue(&cret)
3483
3443
  }
3484
3444
 
3485
- //export api_WrapObject
3486
- func api_WrapObject(value CGoHandle) CGoHandle {
3445
+ //export api_WrapAny
3446
+ func api_WrapAny(value *C.char) CGoHandle {
3487
3447
  _saved_thread := C.PyEval_SaveThread()
3488
3448
  defer C.PyEval_RestoreThread(_saved_thread)
3489
- cret := api.WrapObject(ptrFromHandle_Ptr_environment_ObjectInstance(value))
3449
+ cret := api.WrapAny(C.GoString(value))
3490
3450
 
3491
3451
  return handleFromPtr_api_GoValue(&cret)
3492
3452
  }
@@ -3514,23 +3474,48 @@ func api_DefaultConfig() CGoHandle {
3514
3474
 
3515
3475
  }
3516
3476
 
3517
- // ---- Functions ---
3477
+ //export api_NewConversionError
3478
+ func api_NewConversionError(message *C.char, wrapped *C.char) CGoHandle {
3479
+ _saved_thread := C.PyEval_SaveThread()
3480
+ defer C.PyEval_RestoreThread(_saved_thread)
3481
+ return handleFromPtr_Ptr_api_VMError(api.NewConversionError(C.GoString(message), errors.New(C.GoString(wrapped))))
3518
3482
 
3519
- //export api_ConvertArguments
3520
- func api_ConvertArguments(args CGoHandle) CGoHandle {
3483
+ }
3484
+
3485
+ //export api_NewRuntimeError
3486
+ func api_NewRuntimeError(message *C.char, source CGoHandle) CGoHandle {
3521
3487
  _saved_thread := C.PyEval_SaveThread()
3522
- cret, __err := api.ConvertArguments(deptrFromHandle_Slice_api_GoValue(args))
3488
+ defer C.PyEval_RestoreThread(_saved_thread)
3489
+ return handleFromPtr_Ptr_api_VMError(api.NewRuntimeError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
3490
+
3491
+ }
3492
+
3493
+ //export api_NewCompileError
3494
+ func api_NewCompileError(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.NewCompileError(C.GoString(message), ptrFromHandle_Ptr_api_SourceLocation(source)))
3498
+
3499
+ }
3500
+
3501
+ //export api_NewConfigError
3502
+ func api_NewConfigError(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.NewConfigError(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))))
3523
3514
 
3524
- C.PyEval_RestoreThread(_saved_thread)
3525
- if __err != nil {
3526
- estr := C.CString(__err.Error())
3527
- C.PyErr_SetString(C.PyExc_RuntimeError, estr)
3528
- C.free(unsafe.Pointer(estr))
3529
- return handleFromPtr_Slice_environment_Value(nil)
3530
- }
3531
- return handleFromPtr_Slice_environment_Value(&cret)
3532
3515
  }
3533
3516
 
3517
+ // ---- Functions ---
3518
+
3534
3519
  //export api_LookupObject
3535
3520
  func api_LookupObject(id *C.char) CGoHandle {
3536
3521
  _saved_thread := C.PyEval_SaveThread()
@@ -3560,3 +3545,18 @@ func api_FromGoValue(val CGoHandle) CGoHandle {
3560
3545
  }
3561
3546
  return handleFromPtr_environment_Value(cret)
3562
3547
  }
3548
+
3549
+ //export api_ConvertArguments
3550
+ func api_ConvertArguments(args CGoHandle) CGoHandle {
3551
+ _saved_thread := C.PyEval_SaveThread()
3552
+ cret, __err := api.ConvertArguments(deptrFromHandle_Slice_api_GoValue(args))
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_Slice_environment_Value(nil)
3560
+ }
3561
+ return handleFromPtr_Slice_environment_Value(&cret)
3562
+ }