Document octal and binary integer literals in syntax.

Also add a release notes snippet for it.
pull/3476/head
Filipe Brandenburger 7 years ago
parent 86d2f57e86
commit 5572bbc6cc
  1. 7
      docs/markdown/Syntax.md
  2. 9
      docs/markdown/snippets/integer-base.md

@ -64,6 +64,13 @@ Hexadecimal literals are supported since version 0.45.0:
int_255 = 0xFF
```
Octal and binary literals are supported since version 0.47.0:
```meson
int_493 = 0o755
int_1365 = 0b10101010101
```
Strings can be converted to a number like this:
```meson

@ -0,0 +1,9 @@
## Octal and binary string literals
Octal and binary integer literals can now be used in build and option files.
```meson
int_493 = 0o755
int_1365 = 0b10101010101
```
Loading…
Cancel
Save