tcc_treesitter_defines: Extract macro defines from a header file

View source: R/treesitter_helpers.R

tcc_treesitter_definesR Documentation

Extract macro defines from a header file

Description

Extract macro defines from a header file

Usage

tcc_treesitter_defines(
  file,
  use_cpp = TRUE,
  cc = treesitter.c::r_cc(),
  ccflags = NULL
)

Arguments

file

Path to a header file.

use_cpp

Logical; use the C preprocessor if available.

cc

Compiler string; passed to system2() if use_cpp = TRUE.

ccflags

Additional flags for the compiler.

Value

Character vector of macro names defined in file.

Examples

## Not run: 
tcc_treesitter_defines("/usr/include/math.h")

## End(Not run)

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