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