Merge pull request #3476 from filbranden/intbase1
Add support for octal and binary int literalspull/3403/merge
commit
41ab5166e4
5 changed files with 36 additions and 6 deletions
@ -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 |
||||
``` |
||||
|
@ -0,0 +1,6 @@ |
||||
|
||||
# This should fail. |
||||
# Decimal syntax is 123. |
||||
# Octal syntax is 0o123. |
||||
fail_0123 = 0123 |
||||
|
Loading…
Reference in new issue