tcc_treesitter_struct_bindings: Apply tcc_struct() bindings from a header

View source: R/treesitter_helpers.R

tcc_treesitter_struct_bindingsR Documentation

Apply tcc_struct() bindings from a header

Description

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

## Not run: 
header <- "struct point { double x; double y; };"
ffi <- tcc_ffi()
ffi <- tcc_treesitter_struct_bindings(ffi, header)

## End(Not run)

Rtinycc documentation built on April 28, 2026, 1:07 a.m.