Support binary integer literals in the preprocessor

This commit is contained in:
Olly Betts 2022-07-25 18:13:59 +12:00
commit 1bfe88eeda
3 changed files with 13 additions and 1 deletions

View file

@ -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;