Fix generated code for constant expressions containing wchar_t L literals.
Such as: # define __WCHAR_MAX (0x7fffffff + L'\0') Reported on swig-user mailing list.
This commit is contained in:
parent
323d606d3c
commit
90ba174fce
13 changed files with 29 additions and 2 deletions
|
|
@ -61,7 +61,8 @@ public class runme {
|
|||
assert( typeof(int) == preproc_constants_c.EXPR_LAND.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_LOR.GetType() );
|
||||
assert( typeof(double) == preproc_constants_c.EXPR_CONDITIONAL.GetType() );
|
||||
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_WCHAR_MAX.GetType() );
|
||||
assert( typeof(int) == preproc_constants_c.EXPR_WCHAR_MIN.GetType() );
|
||||
}
|
||||
static void assert(bool assertion) {
|
||||
if (!assertion)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue