This function will use the configured C compiler to list macro definitions (-dM -E) if use_cpp = TRUE and a compiler is available; otherwise, a simple scan of #define lines is used as a fallback.
Source: R/parse-headers.R
get_defines_from_file.RdThis function will use the configured C compiler to list macro definitions (-dM -E) if
use_cpp = TRUE and a compiler is available; otherwise, a simple scan of #define lines
is used as a fallback.
Usage
get_defines_from_file(file, use_cpp = TRUE, cc = r_cc(), ccflags = NULL)