lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.c.CPreambleGenerator Class Reference

Generates code for preambles for the C and CCpp target. More...

Static Public Member Functions

static boolean arduinoBased (TargetConfig targetConfig)
static String generateDefineDirectives (TargetConfig targetConfig, Path srcGenPath)
static String generateIncludeStatements (TargetConfig targetConfig, boolean cppMode)
 Add necessary source files specific to the target language.

Detailed Description

Generates code for preambles for the C and CCpp target.

This includes #include and #define directives at the top of each generated ".c" file.

Author
Edward A. Lee
Marten Lohstroh
Mehrdad Niknami
Christian Menard
Matt Weber
Soroush Bateni
Alexander Schulz-Rosengarten
Hou Seng Wong
Peter Donovan
Anirudh Rengarajan

Member Function Documentation

◆ arduinoBased()

boolean org.lflang.generator.c.CPreambleGenerator.arduinoBased ( TargetConfig targetConfig)
static

◆ generateDefineDirectives()

String org.lflang.generator.c.CPreambleGenerator.generateDefineDirectives ( TargetConfig targetConfig,
Path srcGenPath )
static

◆ generateIncludeStatements()

String org.lflang.generator.c.CPreambleGenerator.generateIncludeStatements ( TargetConfig targetConfig,
boolean cppMode )
static

Add necessary source files specific to the target language.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/c/CPreambleGenerator.java