summaryrefslogtreecommitdiff
path: root/test cases/common/132 get define
AgeCommit message (Collapse)Author
2023-10-04test: get_define: do not use assert incorrectlyMarvin Scholz
This should be an error, not an assert as it asserts nothing, in fact, if this wouldn't error out because of the wrong type passed to the assert, it would even do the wrong thing. Follow-up to #12223
2023-09-07Add compiler.has_defineMarvin Scholz
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.
2023-07-04tests: add standard option to get_define() testKacper Michajłow
This properly tests MSVC case which produce different preprocessed output depending on language version.
2022-12-06test: Add get_define test with prefix arrayMarvin Scholz
2021-04-26Condense test directory names.Jussi Pakkanen