Support binary integer literals in the preprocessor
This commit is contained in:
parent
3140acd748
commit
1bfe88eeda
3 changed files with 13 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
%module cpp14_binary_integer_literals
|
||||
|
||||
#if 0b100 < 4
|
||||
# error binary constant in preprocessor expression failed
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
int b1 = 0b1;
|
||||
int b2 = 0b10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue