mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
8 lines
256 B
Text
8 lines
256 B
Text
local ffi = require("@lune/ffi")
|
|
local c = ffi.c
|
|
|
|
assert(typeof(c.struct({ c.int, c.char })) :: string == "CStructInfo")
|
|
assert(
|
|
tostring(c.struct({ c.int, c.char:ptr() }))
|
|
== ` int, <CPtrInfo(char)>, size = {c.struct({ c.int, c.char:ptr() }).size} `
|
|
)
|