HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gnatprep — Preprocessor for Ada source code files (part of the GNAT toolchain). More information: <https://gcc.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandadasourceclicodeforgnatpreppreprocessor

Problem

How to use the gnatprep command: Preprocessor for Ada source code files (part of the GNAT toolchain). More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Preprocessing-with-gnatprep.html>.

Solution

gnatprep — Preprocessor for Ada source code files (part of the GNAT toolchain). More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Preprocessing-with-gnatprep.html>.

Use symbol definitions from a file:
gnatprep {{source_file}} {{target_file}} {{definitions_file}}


Specify symbol values in the command-line:
gnatprep -D{{name}}={{value}} {{source_file}} {{target_file}}

Code Snippets

Use symbol definitions from a file

gnatprep {{source_file}} {{target_file}} {{definitions_file}}

Specify symbol values in the command-line

gnatprep -D{{name}}={{value}} {{source_file}} {{target_file}}

Context

tldr-pages: common/gnatprep

Revisions (0)

No revisions yet.