add C++ operator aliases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dccd97af1c
commit
db923a855e
2 changed files with 73 additions and 45 deletions
|
|
@ -1240,8 +1240,16 @@ int yylex(void) {
|
|||
|| (strcmp(t,"new[]") == 0)
|
||||
|| (strcmp(t,"delete[]") == 0)
|
||||
|| (strcmp(t,"and") == 0)
|
||||
|| (strcmp(t,"or") == 0)
|
||||
|| (strcmp(t,"and_eq") == 0)
|
||||
|| (strcmp(t,"bitand") == 0)
|
||||
|| (strcmp(t,"bitor") == 0)
|
||||
|| (strcmp(t,"compl") == 0)
|
||||
|| (strcmp(t,"not") == 0)
|
||||
|| (strcmp(t,"not_eq") == 0)
|
||||
|| (strcmp(t,"or") == 0)
|
||||
|| (strcmp(t,"or_eq") == 0)
|
||||
|| (strcmp(t,"xor") == 0)
|
||||
|| (strcmp(t,"xor_eq") == 0)
|
||||
)) {
|
||||
/* retract(strlen(t));*/
|
||||
retract(count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue