summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/configure_file_output_format.md
blob: e5228858456d6215d49aedf0fe5347e7c365ea6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## New keyword argument `output_format` for configure_file()

When called without an input file, `configure_file` generates a
C header file by default. A keyword argument was added to allow
specifying the output format, for example for use with nasm or yasm:

```
conf = configuration_data()
conf.set('FOO', 1)

configure_file('config.asm',
  configuration: conf,
  output_format: 'nasm')
```