Allow macro_name to be speficied as a parameter to configure_file(). This allows C macro-style include guards to be added to configure_file()'s output when a template file is not given. This change simplifies the creation of configure files that define macros with dynamic names and want the C-style include guards.pull/11343/head
parent
3c47216fe9
commit
b51bce070e
7 changed files with 63 additions and 6 deletions
@ -0,0 +1,6 @@ |
||||
## [[configure_file]] now has a `macro_name` parameter. |
||||
|
||||
This new paramater, `macro_name` allows C macro-style include guards to be added |
||||
to [[configure_file]]'s output when a template file is not given. This change |
||||
simplifies the creation of configure files that define macros with dynamic names |
||||
and want the C-style include guards. |
@ -0,0 +1,23 @@ |
||||
/* |
||||
* Autogenerated by the Meson build system. |
||||
* Do not edit, your changes will be lost. |
||||
*/ |
||||
|
||||
#ifndef CONFIG_MAGNESIUM_H |
||||
#define CONFIG_MAGNESIUM_H |
||||
|
||||
#define bool |
||||
|
||||
#undef false |
||||
|
||||
/* ultimate question of life, the universe, and everything */ |
||||
#define int 42 |
||||
|
||||
/* This is |
||||
a multiline |
||||
description */ |
||||
#define str "hello world!" |
||||
|
||||
#define unquoted float |
||||
|
||||
#endif |
Loading…
Reference in new issue