add built-in macro and flag 'empty' as a built-in name instead of a kw
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e4b8871ae2
commit
1cc7f2cdb1
1 changed files with 3 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/* Warnings for Php keywords */
|
/* Warnings for Php keywords */
|
||||||
#define PHPKW(x) %namewarn("314:" #x " is a php keyword") #x
|
#define PHPKW(x) %namewarn("314:" #x " is a php keyword") #x
|
||||||
|
#define PHPBN(x) %namewarn("321:" `x` " conflicts with a built-in name in php") "::" `x`
|
||||||
|
|
||||||
/*
|
/*
|
||||||
from
|
from
|
||||||
|
|
@ -83,8 +84,8 @@ PHPKW(while);
|
||||||
PHPKW(xor);
|
PHPKW(xor);
|
||||||
|
|
||||||
|
|
||||||
// This is conflicting with _std_deque.i!.
|
// This is a bad name only if is global, but is ok as member.
|
||||||
PHPKW(empty);
|
PHPBN(empty);
|
||||||
|
|
||||||
|
|
||||||
#undef PHPKW
|
#undef PHPKW
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue