将 .py 和 .pyi 后缀名改为了 .vp 和 .vpi 后缀名

This commit is contained in:
2026-07-30 16:34:26 +08:00
parent 10cefa51ad
commit 20e7289c61
73 changed files with 652 additions and 274 deletions

8
vpsdk/dynlib.vp Normal file
View File

@@ -0,0 +1,8 @@
import t, c
from . import syscall as syscall
def load_so(path: t.CConst | t.CChar | t.CPtr) -> t.CUInt64T:
return syscall._syscall1(t.CUInt64T(syscall.LOAD_SO), t.CUInt64T(path))
def so_call1(sym_name: t.CConst | t.CChar | t.CPtr, arg1: t.CVoid | t.CPtr) -> t.CInt:
return t.CInt(syscall._syscall2(t.CUInt64T(syscall.SO_CALL1), t.CUInt64T(sym_name), t.CUInt64T(arg1)))