diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-03 21:51:45 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-05 22:33:48 +0200 |
commit | a288b524bc16eeba048e2ee8ec310422ecb36956 (patch) | |
tree | a04a60b58cacc3be810c6c0b77bd8e6d4441ee11 /docs/markdown | |
parent | 86ee89b400fc4acbb506cc44d5a287958397edf9 (diff) | |
download | meson-a288b524bc16eeba048e2ee8ec310422ecb36956.zip meson-a288b524bc16eeba048e2ee8ec310422ecb36956.tar.gz meson-a288b524bc16eeba048e2ee8ec310422ecb36956.tar.bz2 |
Add support for hex int literals.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Syntax.md | 6 | ||||
-rw-r--r-- | docs/markdown/snippets/hexnumbers.md | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 84403f4..1005100 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -58,6 +58,12 @@ y = 3 * 4 d = 5 % 3 # Yields 2. ``` +Hexadecimal literals are supported since version 0.45.0: + +```meson +int_255 = 0xFF +``` + Strings can be converted to a number like this: ```meson diff --git a/docs/markdown/snippets/hexnumbers.md b/docs/markdown/snippets/hexnumbers.md new file mode 100644 index 0000000..840c0cb --- /dev/null +++ b/docs/markdown/snippets/hexnumbers.md @@ -0,0 +1,5 @@ +## Hexadecimal string literals + +Hexadecimal integer literals can now be used in build and option files. + + int_255 = 0xFF |