mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
6 lines
229 B
Text
6 lines
229 B
Text
local ffi = require("@lune/ffi")
|
|
local c = ffi.c
|
|
|
|
assert(typeof(c.int:arr(5)) :: string == "CArrInfo")
|
|
assert(tostring(c.int:arr(5)) == " int, length = 5 ")
|
|
assert(tostring(c.int:ptr():arr(5)) == " <CPtrInfo(int)>, length = 5 ")
|