git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
56 lines
874 B
Text
56 lines
874 B
Text
#ifndef __ruby_rubykw_swg__
|
|
#define __ruby_rubykw_swg__
|
|
|
|
/* Warnings for Ruby keywords */
|
|
#define RUBYKW(x) %namewarn("314:'" `x` "' is a ruby keyword, and it will renamed as 'C_"`x`"'",rename="C_%s") `x`
|
|
|
|
|
|
/*
|
|
|
|
from
|
|
http://www.ruby-lang.org/en/man-1.4/syntax.html#resword
|
|
|
|
*/
|
|
|
|
RUBYKW(BEGIN);
|
|
RUBYKW(class);
|
|
RUBYKW(ensure);
|
|
RUBYKW(nil);
|
|
RUBYKW(self);
|
|
RUBYKW(when);
|
|
RUBYKW(END);
|
|
RUBYKW(def);
|
|
RUBYKW(false);
|
|
RUBYKW(not);
|
|
RUBYKW(super);
|
|
RUBYKW(while);
|
|
RUBYKW(alias);
|
|
RUBYKW(for);
|
|
RUBYKW(or);
|
|
RUBYKW(then);
|
|
RUBYKW(yield);
|
|
RUBYKW(and);
|
|
RUBYKW(do);
|
|
RUBYKW(if);
|
|
RUBYKW(redo);
|
|
RUBYKW(true);
|
|
RUBYKW(begin);
|
|
RUBYKW(else);
|
|
RUBYKW(in);
|
|
RUBYKW(rescue);
|
|
RUBYKW(undef);
|
|
RUBYKW(break);
|
|
RUBYKW(elsif);
|
|
RUBYKW(module);
|
|
RUBYKW(retry);
|
|
RUBYKW(unless);
|
|
RUBYKW(case);
|
|
RUBYKW(end);
|
|
RUBYKW(next);
|
|
RUBYKW(return);
|
|
RUBYKW(until);
|
|
RUBYKW("defined");
|
|
|
|
#undef RUBYKW
|
|
|
|
#endif //__ruby_rubykw_swg__
|