diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-30 23:27:51 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-02 21:02:25 +0200 |
commit | 23ed0e18575075f78009caabedf9e6246d440dde (patch) | |
tree | ea8c782fc49c1436d63621826c8d6cb17121c8af /docs/markdown/Reference-manual.md | |
parent | beb1f00f3bca05a0d9bd30a115da2621f43e2b73 (diff) | |
download | meson-23ed0e18575075f78009caabedf9e6246d440dde.zip meson-23ed0e18575075f78009caabedf9e6246d440dde.tar.gz meson-23ed0e18575075f78009caabedf9e6246d440dde.tar.bz2 |
Make string division do path joining.
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index c9fe25b..f43f1f6 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1005,7 +1005,7 @@ the jar with `java -jar file.jar`. ### join_paths() ``` meson - string join_paths(string1, string2, ...) +string join_paths(string1, string2, ...) ``` Joins the given strings into a file system path segment. For example @@ -1015,6 +1015,15 @@ dropped. That means that `join_paths('foo', '/bar')` returns `/bar`. *Added 0.36.0* +Since 0.49.0 using the`/` operator on strings is equivalent to calling +`join_paths`. + +```meson +# res1 and res2 will have identical values +res1 = join_paths(foo, bar) +res2 = foo / bar +``` + ### library() ``` meson |