objective-lol 0.0.1__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.
@@ -0,0 +1,5 @@
1
+ from .olol import ObjectiveLOLVM
2
+
3
+ def run(source_code: str):
4
+ vm = ObjectiveLOLVM()
5
+ vm.execute(source_code)
@@ -0,0 +1,543 @@
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/bjia56/objective-lol/python/build/lib.macosx-11.0-arm64-cpython-311/objective_lol */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 9 "api.go"
23
+
24
+
25
+
26
+
27
+
28
+ // #define Py_LIMITED_API // need full API for PyRun*
29
+ #include <Python.h>
30
+ typedef uint8_t bool;
31
+ // static inline is trick for avoiding need for extra .c file
32
+ // the following are used for build value -- switch on reflect.Kind
33
+ // or the types equivalent
34
+ static inline PyObject* gopy_build_bool(uint8_t val) {
35
+ return Py_BuildValue("b", val);
36
+ }
37
+ static inline PyObject* gopy_build_int64(int64_t val) {
38
+ return Py_BuildValue("k", val);
39
+ }
40
+ static inline PyObject* gopy_build_uint64(uint64_t val) {
41
+ return Py_BuildValue("K", val);
42
+ }
43
+ static inline PyObject* gopy_build_float64(double val) {
44
+ return Py_BuildValue("d", val);
45
+ }
46
+ static inline PyObject* gopy_build_string(const char* val) {
47
+ return Py_BuildValue("s", val);
48
+ }
49
+ static inline void gopy_decref(PyObject* obj) { // macro
50
+ Py_XDECREF(obj);
51
+ }
52
+ static inline void gopy_incref(PyObject* obj) { // macro
53
+ Py_XINCREF(obj);
54
+ }
55
+ static inline int gopy_method_check(PyObject* obj) { // macro
56
+ return PyMethod_Check(obj);
57
+ }
58
+ static inline void gopy_err_handle() {
59
+ if(PyErr_Occurred() != NULL) {
60
+ PyErr_Print();
61
+ }
62
+ }
63
+
64
+
65
+ #line 1 "cgo-generated-wrapper"
66
+
67
+
68
+ /* End of preamble from import "C" comments. */
69
+
70
+
71
+ /* Start of boilerplate cgo prologue. */
72
+ #line 1 "cgo-gcc-export-header-prolog"
73
+
74
+ #ifndef GO_CGO_PROLOGUE_H
75
+ #define GO_CGO_PROLOGUE_H
76
+
77
+ typedef signed char GoInt8;
78
+ typedef unsigned char GoUint8;
79
+ typedef short GoInt16;
80
+ typedef unsigned short GoUint16;
81
+ typedef int GoInt32;
82
+ typedef unsigned int GoUint32;
83
+ typedef long long GoInt64;
84
+ typedef unsigned long long GoUint64;
85
+ typedef GoInt64 GoInt;
86
+ typedef GoUint64 GoUint;
87
+ typedef size_t GoUintptr;
88
+ typedef float GoFloat32;
89
+ typedef double GoFloat64;
90
+ #ifdef _MSC_VER
91
+ #include <complex.h>
92
+ typedef _Fcomplex GoComplex64;
93
+ typedef _Dcomplex GoComplex128;
94
+ #else
95
+ typedef float _Complex GoComplex64;
96
+ typedef double _Complex GoComplex128;
97
+ #endif
98
+
99
+ /*
100
+ static assertion to make sure the file is being used on architecture
101
+ at least with matching size of GoInt.
102
+ */
103
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
104
+
105
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
106
+ typedef _GoString_ GoString;
107
+ #endif
108
+ typedef void *GoMap;
109
+ typedef void *GoChan;
110
+ typedef struct { void *t; void *v; } GoInterface;
111
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
112
+
113
+ #endif
114
+
115
+ /* End of boilerplate cgo prologue. */
116
+
117
+ #ifdef __cplusplus
118
+ extern "C" {
119
+ #endif
120
+
121
+ extern void GoPyInit();
122
+
123
+ // DecRef decrements the reference count for the specified handle
124
+ // and deletes it it goes to zero.
125
+ //
126
+ extern void DecRef(long long handle);
127
+
128
+ // IncRef increments the reference count for the specified handle.
129
+ //
130
+ extern void IncRef(long long handle);
131
+
132
+ // NumHandles returns the number of handles currently in use.
133
+ //
134
+ extern GoInt NumHandles();
135
+
136
+ // --- wrapping slice: []bool ---
137
+ //
138
+ extern long long Slice_bool_CTor();
139
+ extern GoInt Slice_bool_len(long long handle);
140
+ extern char Slice_bool_elem(long long handle, GoInt _idx);
141
+ extern long long Slice_bool_subslice(long long handle, GoInt _st, GoInt _ed);
142
+ extern void Slice_bool_set(long long handle, GoInt _idx, char _vl);
143
+ extern void Slice_bool_append(long long handle, char _vl);
144
+
145
+ // --- wrapping slice: []byte ---
146
+ //
147
+ extern long long Slice_byte_CTor();
148
+ extern GoInt Slice_byte_len(long long handle);
149
+ extern char Slice_byte_elem(long long handle, GoInt _idx);
150
+ extern long long Slice_byte_subslice(long long handle, GoInt _st, GoInt _ed);
151
+ extern void Slice_byte_set(long long handle, GoInt _idx, char _vl);
152
+ extern void Slice_byte_append(long long handle, char _vl);
153
+ extern long long Slice_byte_from_bytes(PyObject* o);
154
+ extern PyObject* Slice_byte_to_bytes(long long handle);
155
+
156
+ // --- wrapping slice: []error ---
157
+ //
158
+ extern long long Slice_error_CTor();
159
+ extern GoInt Slice_error_len(long long handle);
160
+ extern char* Slice_error_elem(long long handle, GoInt _idx);
161
+ extern long long Slice_error_subslice(long long handle, GoInt _st, GoInt _ed);
162
+ extern void Slice_error_set(long long handle, GoInt _idx, char* _vl);
163
+ extern void Slice_error_append(long long handle, char* _vl);
164
+
165
+ // --- wrapping slice: []float32 ---
166
+ //
167
+ extern long long Slice_float32_CTor();
168
+ extern GoInt Slice_float32_len(long long handle);
169
+ extern float Slice_float32_elem(long long handle, GoInt _idx);
170
+ extern long long Slice_float32_subslice(long long handle, GoInt _st, GoInt _ed);
171
+ extern void Slice_float32_set(long long handle, GoInt _idx, float _vl);
172
+ extern void Slice_float32_append(long long handle, float _vl);
173
+
174
+ // --- wrapping slice: []float64 ---
175
+ //
176
+ extern long long Slice_float64_CTor();
177
+ extern GoInt Slice_float64_len(long long handle);
178
+ extern double Slice_float64_elem(long long handle, GoInt _idx);
179
+ extern long long Slice_float64_subslice(long long handle, GoInt _st, GoInt _ed);
180
+ extern void Slice_float64_set(long long handle, GoInt _idx, double _vl);
181
+ extern void Slice_float64_append(long long handle, double _vl);
182
+
183
+ // --- wrapping slice: []int ---
184
+ //
185
+ extern long long Slice_int_CTor();
186
+ extern GoInt Slice_int_len(long long handle);
187
+ extern long long Slice_int_elem(long long handle, GoInt _idx);
188
+ extern long long Slice_int_subslice(long long handle, GoInt _st, GoInt _ed);
189
+ extern void Slice_int_set(long long handle, GoInt _idx, long long _vl);
190
+ extern void Slice_int_append(long long handle, long long _vl);
191
+
192
+ // --- wrapping slice: []int16 ---
193
+ //
194
+ extern long long Slice_int16_CTor();
195
+ extern GoInt Slice_int16_len(long long handle);
196
+ extern short Slice_int16_elem(long long handle, GoInt _idx);
197
+ extern long long Slice_int16_subslice(long long handle, GoInt _st, GoInt _ed);
198
+ extern void Slice_int16_set(long long handle, GoInt _idx, short _vl);
199
+ extern void Slice_int16_append(long long handle, short _vl);
200
+
201
+ // --- wrapping slice: []int32 ---
202
+ //
203
+ extern long long Slice_int32_CTor();
204
+ extern GoInt Slice_int32_len(long long handle);
205
+ extern long Slice_int32_elem(long long handle, GoInt _idx);
206
+ extern long long Slice_int32_subslice(long long handle, GoInt _st, GoInt _ed);
207
+ extern void Slice_int32_set(long long handle, GoInt _idx, long _vl);
208
+ extern void Slice_int32_append(long long handle, long _vl);
209
+
210
+ // --- wrapping slice: []int64 ---
211
+ //
212
+ extern long long Slice_int64_CTor();
213
+ extern GoInt Slice_int64_len(long long handle);
214
+ extern long long Slice_int64_elem(long long handle, GoInt _idx);
215
+ extern long long Slice_int64_subslice(long long handle, GoInt _st, GoInt _ed);
216
+ extern void Slice_int64_set(long long handle, GoInt _idx, long long _vl);
217
+ extern void Slice_int64_append(long long handle, long long _vl);
218
+
219
+ // --- wrapping slice: []int8 ---
220
+ //
221
+ extern long long Slice_int8_CTor();
222
+ extern GoInt Slice_int8_len(long long handle);
223
+ extern char Slice_int8_elem(long long handle, GoInt _idx);
224
+ extern long long Slice_int8_subslice(long long handle, GoInt _st, GoInt _ed);
225
+ extern void Slice_int8_set(long long handle, GoInt _idx, char _vl);
226
+ extern void Slice_int8_append(long long handle, char _vl);
227
+
228
+ // --- wrapping slice: []rune ---
229
+ //
230
+ extern long long Slice_rune_CTor();
231
+ extern GoInt Slice_rune_len(long long handle);
232
+ extern long Slice_rune_elem(long long handle, GoInt _idx);
233
+ extern long long Slice_rune_subslice(long long handle, GoInt _st, GoInt _ed);
234
+ extern void Slice_rune_set(long long handle, GoInt _idx, long _vl);
235
+ extern void Slice_rune_append(long long handle, long _vl);
236
+
237
+ // --- wrapping slice: []string ---
238
+ //
239
+ extern long long Slice_string_CTor();
240
+ extern GoInt Slice_string_len(long long handle);
241
+ extern char* Slice_string_elem(long long handle, GoInt _idx);
242
+ extern long long Slice_string_subslice(long long handle, GoInt _st, GoInt _ed);
243
+ extern void Slice_string_set(long long handle, GoInt _idx, char* _vl);
244
+ extern void Slice_string_append(long long handle, char* _vl);
245
+
246
+ // --- wrapping slice: []uint ---
247
+ //
248
+ extern long long Slice_uint_CTor();
249
+ extern GoInt Slice_uint_len(long long handle);
250
+ extern unsigned long long Slice_uint_elem(long long handle, GoInt _idx);
251
+ extern long long Slice_uint_subslice(long long handle, GoInt _st, GoInt _ed);
252
+ extern void Slice_uint_set(long long handle, GoInt _idx, unsigned long long _vl);
253
+ extern void Slice_uint_append(long long handle, unsigned long long _vl);
254
+
255
+ // --- wrapping slice: []uint16 ---
256
+ //
257
+ extern long long Slice_uint16_CTor();
258
+ extern GoInt Slice_uint16_len(long long handle);
259
+ extern unsigned short Slice_uint16_elem(long long handle, GoInt _idx);
260
+ extern long long Slice_uint16_subslice(long long handle, GoInt _st, GoInt _ed);
261
+ extern void Slice_uint16_set(long long handle, GoInt _idx, unsigned short _vl);
262
+ extern void Slice_uint16_append(long long handle, unsigned short _vl);
263
+
264
+ // --- wrapping slice: []uint32 ---
265
+ //
266
+ extern long long Slice_uint32_CTor();
267
+ extern GoInt Slice_uint32_len(long long handle);
268
+ extern unsigned long Slice_uint32_elem(long long handle, GoInt _idx);
269
+ extern long long Slice_uint32_subslice(long long handle, GoInt _st, GoInt _ed);
270
+ extern void Slice_uint32_set(long long handle, GoInt _idx, unsigned long _vl);
271
+ extern void Slice_uint32_append(long long handle, unsigned long _vl);
272
+
273
+ // --- wrapping slice: []uint64 ---
274
+ //
275
+ extern long long Slice_uint64_CTor();
276
+ extern GoInt Slice_uint64_len(long long handle);
277
+ extern unsigned long long Slice_uint64_elem(long long handle, GoInt _idx);
278
+ extern long long Slice_uint64_subslice(long long handle, GoInt _st, GoInt _ed);
279
+ extern void Slice_uint64_set(long long handle, GoInt _idx, unsigned long long _vl);
280
+ extern void Slice_uint64_append(long long handle, unsigned long long _vl);
281
+
282
+ // --- wrapping slice: []uint8 ---
283
+ //
284
+ extern long long Slice_uint8_CTor();
285
+ extern GoInt Slice_uint8_len(long long handle);
286
+ extern unsigned char Slice_uint8_elem(long long handle, GoInt _idx);
287
+ extern long long Slice_uint8_subslice(long long handle, GoInt _st, GoInt _ed);
288
+ extern void Slice_uint8_set(long long handle, GoInt _idx, unsigned char _vl);
289
+ extern void Slice_uint8_append(long long handle, unsigned char _vl);
290
+
291
+ // --- wrapping slice: []api.GoValue ---
292
+ //
293
+ extern long long Slice_api_GoValue_CTor();
294
+ extern GoInt Slice_api_GoValue_len(long long handle);
295
+ extern long long Slice_api_GoValue_elem(long long handle, GoInt _idx);
296
+ extern long long Slice_api_GoValue_subslice(long long handle, GoInt _st, GoInt _ed);
297
+ extern void Slice_api_GoValue_set(long long handle, GoInt _idx, long long _vl);
298
+ extern void Slice_api_GoValue_append(long long handle, long long _vl);
299
+
300
+ // --- wrapping slice: []environment.Parameter ---
301
+ //
302
+ extern long long Slice_environment_Parameter_CTor();
303
+ extern GoInt Slice_environment_Parameter_len(long long handle);
304
+ extern long long Slice_environment_Parameter_elem(long long handle, GoInt _idx);
305
+ extern long long Slice_environment_Parameter_subslice(long long handle, GoInt _st, GoInt _ed);
306
+ extern void Slice_environment_Parameter_set(long long handle, GoInt _idx, long long _vl);
307
+ extern void Slice_environment_Parameter_append(long long handle, long long _vl);
308
+
309
+ // --- wrapping slice: []environment.Value ---
310
+ //
311
+ extern long long Slice_environment_Value_CTor();
312
+ extern GoInt Slice_environment_Value_len(long long handle);
313
+ extern long long Slice_environment_Value_elem(long long handle, GoInt _idx);
314
+ extern long long Slice_environment_Value_subslice(long long handle, GoInt _st, GoInt _ed);
315
+ extern void Slice_environment_Value_set(long long handle, GoInt _idx, long long _vl);
316
+ extern void Slice_environment_Value_append(long long handle, long long _vl);
317
+
318
+ // --- wrapping map: map[string]*api.ClassMethod ---
319
+ //
320
+ extern long long Map_string_Ptr_api_ClassMethod_CTor();
321
+ extern GoInt Map_string_Ptr_api_ClassMethod_len(long long handle);
322
+ extern long long Map_string_Ptr_api_ClassMethod_elem(long long handle, char* _ky);
323
+ extern char Map_string_Ptr_api_ClassMethod_contains(long long handle, char* _ky);
324
+ extern void Map_string_Ptr_api_ClassMethod_set(long long handle, char* _ky, long long _vl);
325
+ extern void Map_string_Ptr_api_ClassMethod_delete(long long handle, char* _ky);
326
+ extern long long Map_string_Ptr_api_ClassMethod_keys(long long handle);
327
+
328
+ // --- wrapping map: map[string]*api.ClassVariable ---
329
+ //
330
+ extern long long Map_string_Ptr_api_ClassVariable_CTor();
331
+ extern GoInt Map_string_Ptr_api_ClassVariable_len(long long handle);
332
+ extern long long Map_string_Ptr_api_ClassVariable_elem(long long handle, char* _ky);
333
+ extern char Map_string_Ptr_api_ClassVariable_contains(long long handle, char* _ky);
334
+ extern void Map_string_Ptr_api_ClassVariable_set(long long handle, char* _ky, long long _vl);
335
+ extern void Map_string_Ptr_api_ClassVariable_delete(long long handle, char* _ky);
336
+ extern long long Map_string_Ptr_api_ClassVariable_keys(long long handle);
337
+
338
+ // --- wrapping map: map[string]*environment.Class ---
339
+ //
340
+ extern long long Map_string_Ptr_environment_Class_CTor();
341
+ extern GoInt Map_string_Ptr_environment_Class_len(long long handle);
342
+ extern long long Map_string_Ptr_environment_Class_elem(long long handle, char* _ky);
343
+ extern char Map_string_Ptr_environment_Class_contains(long long handle, char* _ky);
344
+ extern void Map_string_Ptr_environment_Class_set(long long handle, char* _ky, long long _vl);
345
+ extern void Map_string_Ptr_environment_Class_delete(long long handle, char* _ky);
346
+ extern long long Map_string_Ptr_environment_Class_keys(long long handle);
347
+
348
+ // --- wrapping map: map[string]*environment.Function ---
349
+ //
350
+ extern long long Map_string_Ptr_environment_Function_CTor();
351
+ extern GoInt Map_string_Ptr_environment_Function_len(long long handle);
352
+ extern long long Map_string_Ptr_environment_Function_elem(long long handle, char* _ky);
353
+ extern char Map_string_Ptr_environment_Function_contains(long long handle, char* _ky);
354
+ extern void Map_string_Ptr_environment_Function_set(long long handle, char* _ky, long long _vl);
355
+ extern void Map_string_Ptr_environment_Function_delete(long long handle, char* _ky);
356
+ extern long long Map_string_Ptr_environment_Function_keys(long long handle);
357
+
358
+ // --- wrapping map: map[string]*environment.MemberVariable ---
359
+ //
360
+ extern long long Map_string_Ptr_environment_MemberVariable_CTor();
361
+ extern GoInt Map_string_Ptr_environment_MemberVariable_len(long long handle);
362
+ extern long long Map_string_Ptr_environment_MemberVariable_elem(long long handle, char* _ky);
363
+ extern char Map_string_Ptr_environment_MemberVariable_contains(long long handle, char* _ky);
364
+ extern void Map_string_Ptr_environment_MemberVariable_set(long long handle, char* _ky, long long _vl);
365
+ extern void Map_string_Ptr_environment_MemberVariable_delete(long long handle, char* _ky);
366
+ extern long long Map_string_Ptr_environment_MemberVariable_keys(long long handle);
367
+
368
+ // --- wrapping map: map[string]*environment.Variable ---
369
+ //
370
+ extern long long Map_string_Ptr_environment_Variable_CTor();
371
+ extern GoInt Map_string_Ptr_environment_Variable_len(long long handle);
372
+ extern long long Map_string_Ptr_environment_Variable_elem(long long handle, char* _ky);
373
+ extern char Map_string_Ptr_environment_Variable_contains(long long handle, char* _ky);
374
+ extern void Map_string_Ptr_environment_Variable_set(long long handle, char* _ky, long long _vl);
375
+ extern void Map_string_Ptr_environment_Variable_delete(long long handle, char* _ky);
376
+ extern long long Map_string_Ptr_environment_Variable_keys(long long handle);
377
+
378
+ // --- wrapping map: map[string]api.GoValue ---
379
+ //
380
+ extern long long Map_string_api_GoValue_CTor();
381
+ extern GoInt Map_string_api_GoValue_len(long long handle);
382
+ extern long long Map_string_api_GoValue_elem(long long handle, char* _ky);
383
+ extern char Map_string_api_GoValue_contains(long long handle, char* _ky);
384
+ extern void Map_string_api_GoValue_set(long long handle, char* _ky, long long _vl);
385
+ extern void Map_string_api_GoValue_delete(long long handle, char* _ky);
386
+ extern long long Map_string_api_GoValue_keys(long long handle);
387
+
388
+ // --- wrapping struct: api.ClassMethod ---
389
+ //
390
+ extern long long api_ClassMethod_CTor();
391
+ extern char* api_ClassMethod_Name_Get(long long handle);
392
+ extern void api_ClassMethod_Name_Set(long long handle, char* val);
393
+ extern long long api_ClassMethod_Argc_Get(long long handle);
394
+ extern void api_ClassMethod_Argc_Set(long long handle, long long val);
395
+
396
+ // --- wrapping struct: api.ExecutionResult ---
397
+ //
398
+ extern long long api_ExecutionResult_CTor();
399
+ extern long long api_ExecutionResult_Value_Get(long long handle);
400
+ extern void api_ExecutionResult_Value_Set(long long handle, long long val);
401
+ extern long long api_ExecutionResult_RawValue_Get(long long handle);
402
+ extern void api_ExecutionResult_RawValue_Set(long long handle, long long val);
403
+ extern char* api_ExecutionResult_Output_Get(long long handle);
404
+ extern void api_ExecutionResult_Output_Set(long long handle, char* val);
405
+
406
+ // --- wrapping struct: api.UnknownFunctionHandler ---
407
+ //
408
+ extern long long api_UnknownFunctionHandler_CTor();
409
+
410
+ // --- wrapping struct: api.VMConfig ---
411
+ //
412
+ extern long long api_VMConfig_CTor();
413
+ extern long long api_VMConfig_Stdout_Get(long long handle);
414
+ extern void api_VMConfig_Stdout_Set(long long handle, long long val);
415
+ extern long long api_VMConfig_Stdin_Get(long long handle);
416
+ extern void api_VMConfig_Stdin_Set(long long handle, long long val);
417
+ extern long long api_VMConfig_Timeout_Get(long long handle);
418
+ extern void api_VMConfig_Timeout_Set(long long handle, long long val);
419
+ extern char* api_VMConfig_WorkingDirectory_Get(long long handle);
420
+ extern void api_VMConfig_WorkingDirectory_Set(long long handle, char* val);
421
+ extern char* api_VMConfig_Validate(long long _handle);
422
+
423
+ // --- wrapping struct: api.ClassDefinition ---
424
+ //
425
+ extern long long api_ClassDefinition_CTor();
426
+ extern char* api_ClassDefinition_Name_Get(long long handle);
427
+ extern void api_ClassDefinition_Name_Set(long long handle, char* val);
428
+ extern long long api_ClassDefinition_PublicVariables_Get(long long handle);
429
+ extern void api_ClassDefinition_PublicVariables_Set(long long handle, long long val);
430
+ extern long long api_ClassDefinition_PrivateVariables_Get(long long handle);
431
+ extern void api_ClassDefinition_PrivateVariables_Set(long long handle, long long val);
432
+ extern long long api_ClassDefinition_SharedVariables_Get(long long handle);
433
+ extern void api_ClassDefinition_SharedVariables_Set(long long handle, long long val);
434
+ extern long long api_ClassDefinition_PublicMethods_Get(long long handle);
435
+ extern void api_ClassDefinition_PublicMethods_Set(long long handle, long long val);
436
+ extern long long api_ClassDefinition_PrivateMethods_Get(long long handle);
437
+ extern void api_ClassDefinition_PrivateMethods_Set(long long handle, long long val);
438
+ extern long long api_ClassDefinition_UnknownFunctionHandler_Get(long long handle);
439
+ extern void api_ClassDefinition_UnknownFunctionHandler_Set(long long handle, long long val);
440
+
441
+ // --- wrapping struct: api.GoValue ---
442
+ //
443
+ extern long long api_GoValue_CTor();
444
+ extern char* api_GoValue_ID(long long _handle);
445
+ extern long long api_GoValue_MarshalJSON(long long _handle);
446
+ extern char* api_GoValue_Type(long long _handle);
447
+ extern long long api_GoValue_Int(long long _handle);
448
+ extern double api_GoValue_Float(long long _handle);
449
+ extern char* api_GoValue_String(long long _handle);
450
+ extern char api_GoValue_Bool(long long _handle);
451
+ extern long long api_GoValue_Slice(long long _handle);
452
+ extern long long api_GoValue_Map(long long _handle);
453
+ extern long long api_GoValue_Object(long long _handle);
454
+
455
+ // --- wrapping struct: api.SourceLocation ---
456
+ //
457
+ extern long long api_SourceLocation_CTor();
458
+ extern char* api_SourceLocation_Filename_Get(long long handle);
459
+ extern void api_SourceLocation_Filename_Set(long long handle, char* val);
460
+ extern long long api_SourceLocation_Line_Get(long long handle);
461
+ extern void api_SourceLocation_Line_Set(long long handle, long long val);
462
+ extern long long api_SourceLocation_Column_Get(long long handle);
463
+ extern void api_SourceLocation_Column_Set(long long handle, long long val);
464
+
465
+ // --- wrapping struct: api.VM ---
466
+ //
467
+ extern long long api_VM_CTor();
468
+ extern long long api_VM_GetCompatibilityShim(long long _handle);
469
+ extern long long api_VM_Execute(long long _handle, char* code);
470
+ extern long long api_VM_ExecuteWithContext(long long _handle, long long ctx, char* code);
471
+ extern long long api_VM_NewObjectInstance(long long _handle, char* className);
472
+ extern long long api_VM_Call(long long _handle, char* functionName, long long args);
473
+ extern long long api_VM_CallMethod(long long _handle, long long object, char* methodName, long long args);
474
+ extern char* api_VM_DefineVariable(long long _handle, char* name, long long value, char constant);
475
+ extern char* api_VM_SetVariable(long long _handle, char* variableName, long long value);
476
+ extern long long api_VM_GetVariable(long long _handle, char* variableName);
477
+ extern char* api_VM_DefineClass(long long _handle, long long classDef);
478
+
479
+ // --- wrapping struct: api.VMCompatibilityShim ---
480
+ //
481
+ extern long long api_VMCompatibilityShim_CTor();
482
+ extern char* api_VMCompatibilityShim_DefineFunction(long long _handle, char* id, char* name, long long argc, PyObject* function);
483
+ extern long long api_VMCompatibilityShim_BuildNewClassVariableWithGetter(long long _handle, long long variable, char* getterID, PyObject* getter);
484
+ extern long long api_VMCompatibilityShim_BuildNewClassVariableWithSetter(long long _handle, long long variable, char* setterID, PyObject* setter);
485
+ extern long long api_VMCompatibilityShim_BuildNewClassMethod(long long _handle, long long method, char* id, PyObject* function);
486
+ extern long long api_VMCompatibilityShim_BuildNewUnknownFunctionHandler(long long _handle, char* id, PyObject* function);
487
+ extern char api_VMCompatibilityShim_IsClassDefined(long long _handle, char* name);
488
+ extern long long api_VMCompatibilityShim_LookupObject(long long _handle, char* id);
489
+ extern long long api_VMCompatibilityShim_GetObjectMRO(long long _handle, char* id);
490
+ extern long long api_VMCompatibilityShim_GetObjectImmediateFunctions(long long _handle, char* id);
491
+ extern long long api_VMCompatibilityShim_GetObjectImmediateVariables(long long _handle, char* id);
492
+ extern char* api_VMCompatibilityShim_AddVariableToObject(long long _handle, char* id, long long variable);
493
+
494
+ // --- wrapping struct: api.VMError ---
495
+ //
496
+ extern long long api_VMError_CTor();
497
+ extern char* api_VMError_Type_Get(long long handle);
498
+ extern void api_VMError_Type_Set(long long handle, char* val);
499
+ extern char* api_VMError_Message_Get(long long handle);
500
+ extern void api_VMError_Message_Set(long long handle, char* val);
501
+ extern long long api_VMError_Source_Get(long long handle);
502
+ extern void api_VMError_Source_Set(long long handle, long long val);
503
+ extern long long api_VMError_Duration_Get(long long handle);
504
+ extern void api_VMError_Duration_Set(long long handle, long long val);
505
+ extern char* api_VMError_Error(long long _handle);
506
+ extern char* api_VMError_Unwrap(long long _handle);
507
+ extern char api_VMError_IsCompileError(long long _handle);
508
+ extern char api_VMError_IsRuntimeError(long long _handle);
509
+ extern char api_VMError_IsTimeoutError(long long _handle);
510
+ extern char api_VMError_IsConversionError(long long _handle);
511
+ extern char api_VMError_IsConfigError(long long _handle);
512
+
513
+ // --- wrapping struct: api.ClassVariable ---
514
+ //
515
+ extern long long api_ClassVariable_CTor();
516
+ extern char* api_ClassVariable_Name_Get(long long handle);
517
+ extern void api_ClassVariable_Name_Set(long long handle, char* val);
518
+ extern long long api_ClassVariable_Value_Get(long long handle);
519
+ extern void api_ClassVariable_Value_Set(long long handle, long long val);
520
+ extern char api_ClassVariable_Locked_Get(long long handle);
521
+ extern void api_ClassVariable_Locked_Set(long long handle, char val);
522
+ extern long long api_DefaultConfig();
523
+ extern long long api_NewClassDefinition();
524
+ extern long long api_WrapInt(long long value);
525
+ extern long long api_WrapObject(long long value);
526
+ extern long long api_WrapBool(char value);
527
+ extern long long api_WrapAny(char* value);
528
+ extern long long api_ToGoValue(long long val);
529
+ extern long long api_WrapFloat(double value);
530
+ extern long long api_WrapString(char* value);
531
+ extern long long api_NewVM(long long config);
532
+ extern long long api_NewCompileError(char* message, long long source);
533
+ extern long long api_NewConfigError(char* message, char* wrapped);
534
+ extern long long api_NewRuntimeError(char* message, long long source);
535
+ extern long long api_NewConversionError(char* message, char* wrapped);
536
+ extern long long api_NewTimeoutError(long long duration);
537
+ extern long long api_FromGoValue(long long val);
538
+ extern long long api_ConvertArguments(long long args);
539
+ extern long long api_LookupObject(char* id);
540
+
541
+ #ifdef __cplusplus
542
+ }
543
+ #endif
Binary file