Skip to contents

Apply tcc_struct() bindings from a header

Usage

tcc_treesitter_struct_bindings(ffi, header, ...)

Arguments

ffi

A tcc_ffi object.

header

Character scalar containing C declarations.

...

Passed to tcc_treesitter_struct_accessors().

Value

Updated tcc_ffi object.

Examples

if (FALSE) { # \dontrun{
header <- "struct point { double x; double y; };"
ffi <- tcc_ffi()
ffi <- tcc_treesitter_struct_bindings(ffi, header)
} # }