Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | #ifndef __ruby_rubykw_swg__ |
2 | #define __ruby_rubykw_swg__ | |
3 | ||
4 | /* Warnings for Ruby keywords */ | |
5 | #define RUBYKW(x) %namewarn("314:" #x " is a ruby keyword") #x | |
6 | ||
7 | ||
8 | /* | |
9 | ||
10 | from | |
11 | http://www.ruby-lang.org/en/man-1.4/syntax.html#resword | |
12 | ||
13 | */ | |
14 | ||
15 | RUBYKW(BEGIN); | |
16 | RUBYKW(class); | |
17 | RUBYKW(ensure); | |
18 | RUBYKW(nil); | |
19 | RUBYKW(self); | |
20 | RUBYKW(when); | |
21 | RUBYKW(END); | |
22 | RUBYKW(def); | |
23 | RUBYKW(false); | |
24 | RUBYKW(not); | |
25 | RUBYKW(super); | |
26 | RUBYKW(while); | |
27 | RUBYKW(alias); | |
28 | RUBYKW(for); | |
29 | RUBYKW(or); | |
30 | RUBYKW(then); | |
31 | RUBYKW(yield); | |
32 | RUBYKW(and); | |
33 | RUBYKW(do); | |
34 | RUBYKW(if); | |
35 | RUBYKW(redo); | |
36 | RUBYKW(true); | |
37 | RUBYKW(begin); | |
38 | RUBYKW(else); | |
39 | RUBYKW(in); | |
40 | RUBYKW(rescue); | |
41 | RUBYKW(undef); | |
42 | RUBYKW(break); | |
43 | RUBYKW(elsif); | |
44 | RUBYKW(module); | |
45 | RUBYKW(retry); | |
46 | RUBYKW(unless); | |
47 | RUBYKW(case); | |
48 | RUBYKW(end); | |
49 | RUBYKW(next); | |
50 | RUBYKW(return); | |
51 | RUBYKW(until); | |
52 | ||
53 | /* swig doesn't like this one in a macro, adding it by hand */ | |
54 | //RUBYKW(defined); | |
55 | %namewarn("314: defined is a ruby keyword") "defined"; | |
56 | ||
57 | ||
58 | #undef RUBYKW | |
59 | ||
60 | #endif //__ruby_rubykw_swg__ |