Fix constant expressions containing <= or >=
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
719cfe68bf
commit
2726424a7f
6 changed files with 13 additions and 6 deletions
|
|
@ -51,6 +51,8 @@ public class runme {
|
|||
assert( typeof(int) == preproc_constants_c.EXPR_MINUS.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_LSHIFT.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_RSHIFT.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_LTE.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_GTE.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_INEQUALITY.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_EQUALITY.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_AND.GetType() );
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ public class runme {
|
|||
assert( typeof(int) == preproc_constants.EXPR_MINUS.GetType() );
|
||||
assert( typeof(int) == preproc_constants.EXPR_LSHIFT.GetType() );
|
||||
assert( typeof(int) == preproc_constants.EXPR_RSHIFT.GetType() );
|
||||
assert( typeof(bool) == preproc_constants.EXPR_LTE.GetType() );
|
||||
assert( typeof(bool) == preproc_constants.EXPR_GTE.GetType() );
|
||||
assert( typeof(bool) == preproc_constants.EXPR_INEQUALITY.GetType() );
|
||||
assert( typeof(bool) == preproc_constants.EXPR_EQUALITY.GetType() );
|
||||
assert( typeof(int) == preproc_constants.EXPR_AND.GetType() );
|
||||
|
|
|
|||
|
|
@ -68,9 +68,9 @@
|
|||
/* FIXME
|
||||
#define EXPR_LT 0xFF < 255
|
||||
#define EXPR_GT 0xFF > 255
|
||||
#define EXPR_LTE 0xFF <= 255
|
||||
#define EXPR_LGE 0xFF >= 255
|
||||
*/
|
||||
#define EXPR_LTE 0xFF <= 255
|
||||
#define EXPR_GTE 0xFF >= 255
|
||||
#define EXPR_INEQUALITY 0xFF != 255
|
||||
#define EXPR_EQUALITY 0xFF == 255
|
||||
#define EXPR_AND 0xFF & 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue