[php] Fix reserved class names TRUE, FALSE, NULL
PHPCN(x) does a string compare of x with the lower-cased class name, so x needs to be in lowercase or else the entry has no effect. The entries for TRUE, FALSE and NULL weren't working as a result.
This commit is contained in:
parent
853c511057
commit
b671a37e89
2 changed files with 19 additions and 4 deletions
|
|
@ -5,6 +5,9 @@
|
|||
%warnfilter(SWIGWARN_PARSE_KEYWORD) stdClass;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) directory;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) null;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) True;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) FALSE;
|
||||
#endif
|
||||
|
||||
%ignore prev::operator++;
|
||||
|
|
@ -36,4 +39,15 @@
|
|||
prev operator++(int) { return *this; }
|
||||
};
|
||||
|
||||
class null
|
||||
{
|
||||
};
|
||||
|
||||
class True
|
||||
{
|
||||
};
|
||||
|
||||
class FALSE
|
||||
{
|
||||
};
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue