better kw from Olly's comments

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-31 10:43:06 +00:00
commit f3262ed3d9
3 changed files with 49 additions and 49 deletions

View file

@ -2,7 +2,7 @@
#define __ruby_rubykw_swg__
/* Warnings for Ruby keywords */
#define RUBYKW(x) %namewarn("314:" #x " is a ruby keyword") #x
#define RUBYKW(x) %namewarn("314:'" `x` "' is a ruby keyword, and it will renamed as 'C_"`x`"'",rename="C_%s") `x`
/*
@ -49,11 +49,7 @@ RUBYKW(end);
RUBYKW(next);
RUBYKW(return);
RUBYKW(until);
/* swig doesn't like this one in a macro, adding it by hand */
//RUBYKW(defined);
%namewarn("314: defined is a ruby keyword") "defined";
RUBYKW("defined");
#undef RUBYKW