mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 18:40:58 +01:00
12 lines
335 B
Text
12 lines
335 B
Text
local ffi = require("@lune/ffi")
|
|
|
|
print(ffi.int)
|
|
print(ffi.int:ptr())
|
|
print(ffi.int:arr(5):ptr())
|
|
print(ffi.int:arr(5))
|
|
|
|
print(ffi.funcInfo({ ffi.int }, ffi.int))
|
|
print(ffi.funcInfo({ ffi.int, ffi.double }, ffi.int:ptr()))
|
|
print(ffi.funcInfo({ ffi.int, ffi.double }, ffi.int:ptr():ptr()))
|
|
|
|
print(ffi.structInfo({ ffi.int, ffi.char }))
|