true and false supported in constant expressions (C++ only). && || == != < > <= >= operators now return type bool (C++ only) and type int for C as per C/C++ standards.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11677 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d841f7a66c
commit
7c6aca2ebc
10 changed files with 276 additions and 15 deletions
6
Examples/test-suite/preproc_constants_c.i
Normal file
6
Examples/test-suite/preproc_constants_c.i
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%module preproc_constants_c
|
||||
|
||||
%define true 1 %enddef
|
||||
%define false 0 %enddef
|
||||
|
||||
%include "preproc_constants.i"
|
||||
Loading…
Add table
Add a link
Reference in a new issue