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
Constants
- PK_DEBUG_CEVAL_STEP → const int
- PK_DEBUG_COMPILER → const int
- PK_DEBUG_GC_STATS → const int
- PK_DEBUG_MEMORY_POOL → const int
- PK_DEBUG_NO_AUTO_GC → const int
- PK_ENABLE_OS → const int
- PK_GC_MIN_THRESHOLD → const int
- PK_IS_DESKTOP_PLATFORM → const int
- PK_MAX_CO_VARNAMES → const int
- PK_MAX_MODULE_PATH_LEN → const int
- PK_PLATFORM_SEP → const int
- PK_VERSION → const String
- PK_VERSION_MAJOR → const int
- PK_VERSION_MINOR → const int
- PK_VERSION_PATCH → const int
- PK_VM_STACK_SIZE → const int
- PY_SYS_PLATFORM → const int
- PY_SYS_PLATFORM_STRING → const String
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. @returntrue
if the function is successful orfalse
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.