fix renaming for begin/end
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7ea4a9e990
commit
1d4edd3b43
1 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* Warnings for Ruby keywords */
|
||||
#define RUBYKW(x) %keywordwarn("'" `x` "' is a ruby keyword, and it will renamed as 'C_"`x`"'",rename="C_%s") `x`
|
||||
#define RUBYBN(x) %builtinwarn("'" `x` "' is a built-in name") "::"`x`
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -34,7 +35,6 @@ RUBYKW(do);
|
|||
RUBYKW(if);
|
||||
RUBYKW(redo);
|
||||
RUBYKW(true);
|
||||
RUBYKW(begin);
|
||||
RUBYKW(else);
|
||||
RUBYKW(in);
|
||||
RUBYKW(rescue);
|
||||
|
|
@ -45,12 +45,14 @@ RUBYKW(module);
|
|||
RUBYKW(retry);
|
||||
RUBYKW(unless);
|
||||
RUBYKW(case);
|
||||
RUBYKW(end);
|
||||
RUBYKW(next);
|
||||
RUBYKW(return);
|
||||
RUBYKW(until);
|
||||
RUBYKW("defined");
|
||||
|
||||
RUBYBN(begin);
|
||||
RUBYBN(end);
|
||||
|
||||
#undef RUBYKW
|
||||
|
||||
#endif //__ruby_rubykw_swg__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue