初始化仓库

This commit is contained in:
2026-03-18 16:20:46 +08:00
parent 8ebf63008e
commit 20221fac5f
79 changed files with 35257 additions and 0 deletions

17
src/main.cj Normal file
View File

@ -0,0 +1,17 @@
@FFI("LuaCangjie_api")
@C
struct lua_runner {
}
foreign func init_lua_runner(self:CPointer<lua_runner>,pathio:CString,pkgpath:CString,io_input:CFunc<() -> Int32>,io_output:CFunc<() -> Int32>):Int32
foreign func get_errno():Int32
foreign func getresult(runner:CPointer<lua_runner>):CString
foreign func run(self:CPointer<lua_runner>,path:CString,arg:CString):Int32
main(): Int64 {
var runnr = lua_runner
println("hello world")
return 0
}