diff options
author | Marvin Scholz <epirat07@gmail.com> | 2023-09-06 03:12:55 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2023-09-07 00:45:38 +0300 |
commit | 3fc16f05b513f26aa5da614673116074f5d60396 (patch) | |
tree | 4227d8e3c741ecefb8fc8849cd25e1399f004741 /mesonbuild/build.py | |
parent | 346a9157436fb88fbf38e2d1284fa7373c14d4a1 (diff) | |
download | meson-3fc16f05b513f26aa5da614673116074f5d60396.zip meson-3fc16f05b513f26aa5da614673116074f5d60396.tar.gz meson-3fc16f05b513f26aa5da614673116074f5d60396.tar.bz2 |
Add compiler.has_define
Adds a new method to the compiler object, has_define.
This makes it possible to check if a preprocessor macro/define
is set or not.
This is especially helpful if the define in question is empty,
for example:
#define MESON_EMPTY_DEFINE
This would yield the same results as a missing define with
the existing get_define method, as it would return an empty
string for both cases. Therefore this additional method is
needed.
Diffstat (limited to 'mesonbuild/build.py')
0 files changed, 0 insertions, 0 deletions