diff options
author | Jerry Casiano <JerryCasiano@gmail.com> | 2020-11-29 16:51:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 23:51:47 +0200 |
commit | 6e39dcad2fbd8d1c739e262b0e7b7d901cf1ce08 (patch) | |
tree | 73f31024f495141f901367f1491b38cd23c86b82 | |
parent | 631a7b5a2a8ffa31d0d126608e79841be02ecfea (diff) | |
download | meson-6e39dcad2fbd8d1c739e262b0e7b7d901cf1ce08.zip meson-6e39dcad2fbd8d1c739e262b0e7b7d901cf1ce08.tar.gz meson-6e39dcad2fbd8d1c739e262b0e7b7d901cf1ce08.tar.bz2 |
Update Vala Preprocessor section in documentation. Closes: #8040 [skip ci]
-rw-r--r-- | docs/markdown/Vala.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md index 0a29847..c7d44b0 100644 --- a/docs/markdown/Vala.md +++ b/docs/markdown/Vala.md @@ -252,7 +252,13 @@ keyword added to include the project VAPI directory. This is not added automatically by `add_project_arguments()`. ### Working with the Vala Preprocessor -Passing arguments to [Vala's preprocessor](https://wiki.gnome.org/Projects/Vala/Manual/Preprocessor) requires specifying the language as `c`. For example, the following statement sets the preprocessor symbol `FUSE_USE_VERSION` to the value `26`: +Passing arguments to [Vala's preprocessor](https://wiki.gnome.org/Projects/Vala/Manual/Preprocessor) requires specifying the language as `vala`. For example, the following statement sets the preprocessor symbol `USE_FUSE`: + +```meson +add_project_arguments('-D', 'USE_FUSE', language: 'vala') +``` + +If you need to pass an argument to the C pre-processor then specify the language as c. For example to set FUSE_USE_VERSION to 26 use: ```meson add_project_arguments('-DFUSE_USE_VERSION=26', language: 'c') |