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@8135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dbc55f256c
commit
9ca73746b6
1 changed files with 3 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* Warnings for Php keywords */
|
||||
#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
|
||||
|
|
@ -83,8 +84,8 @@ PHPKW(while);
|
|||
PHPKW(xor);
|
||||
|
||||
|
||||
// This is conflicting with _std_deque.i!.
|
||||
PHPKW(empty);
|
||||
// This is a bad name only if is global, but is ok as member.
|
||||
PHPBN(empty);
|
||||
|
||||
|
||||
#undef PHPKW
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue