diff options
| author | Christoph Behle <behlec@gmail.com> | 2018-06-10 21:32:45 +0200 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-12 00:14:54 +0000 |
| commit | 40d121d33ee10004c0018df2f8ec2665569ff2db (patch) | |
| tree | fdefbdb24a93ac457467b55746bba65fbcf6b26c /test cases/common | |
| parent | bbb893f39e0bf7424a7104dcc15b449c69b9103e (diff) | |
| download | meson-40d121d33ee10004c0018df2f8ec2665569ff2db.tar.gz | |
get_define can concatenate string literals.
Added method concatenate_string_literals to CCompiler. Will concatenate
string literals.
Added keyword argument 'concatenate_string_literals' to Compiler.get_define.
If used will apply concatenate_string_literals to its return value.
Diffstat (limited to 'test cases/common')
| -rw-r--r-- | test cases/common/140 get define/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/140 get define/meson.build b/test cases/common/140 get define/meson.build index 761057bfb..5d7f858f2 100644 --- a/test cases/common/140 get define/meson.build +++ b/test cases/common/140 get define/meson.build @@ -82,6 +82,6 @@ foreach lang : ['c', 'cpp'] endif have = cc.get_define('TEST_VERSION_STR', - prefix : '#include <concat.h>', include_directories: include_directories('.')) + prefix : '#include <concat.h>', include_directories: include_directories('.'), concatenate_string_literals: true) assert(have == '"6.0.0"', 'TEST_VERSION_STR value is "@0@" instead of ""6.0.0""'.format(have)) endforeach |
