pocketpy_bindings_generated library

Classes

c11_mat3x3
c11_sv
A string view type. It is helpful for passing strings which are not null-terminated.
c11_vec2
c11_vec2i
c11_vec3
c11_vec3i
PocketpyBindings
Bindings for src/pocketpy.h.
py_Callbacks
A struct contains the callbacks of the VM.
py_CompileMode
Python compiler modes.
py_MagicNames
Python favored string formatting. %d: int %i: py_i64 (int64_t) %f: py_f64 (double) %s: const char* %q: c11_sv %v: c11_sv %c: char %p: void* %t: py_Type %n: py_Name
py_PredefinedTypes
py_TValue
UnnamedStruct1
UnnamedStruct2
UnnamedStruct3
UnnamedStruct4
UnnamedStruct5

Typedefs

py_CFunction = Pointer<NativeFunction<Bool Function(Int argc, py_StackRef argv)>>
Native function signature. @param argc number of arguments. @param argv array of arguments. Use py_arg(i) macro to get the i-th argument. @return true if the function is successful or false if an exception is raised.
py_Dtor = Pointer<NativeFunction<Void Function(Pointer<Void>)>>
A generic destructor function.
py_f64 = Double
A 64-bit floating-point type. Corresponds to float in python.
py_GlobalRef = Pointer<py_TValue>
A global reference which has the same lifespan as the VM.
py_i64 = Int64
A 64-bit integer type. Corresponds to int in python.
py_ItemRef = Pointer<py_TValue>
An item reference to a container object. It invalidates when the container is modified.
py_Name = Uint16
An integer that represents a python identifier. This is to achieve string pooling and fast name resolution.
py_ObjectRef = Pointer<py_TValue>
A reference which has the same lifespan as the python object.
py_OutRef = Pointer<py_TValue>
An output reference for returning a value.
py_Ref = Pointer<py_TValue>
A generic reference to a python object.
py_StackRef = Pointer<py_TValue>
A specific location in the value stack of the VM.
py_Type = Int16
An integer that represents a python type. 0 is invalid.