Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
de6d6ccaa8
commit
9c323f4a70
14 changed files with 53 additions and 16 deletions
|
|
@ -12,6 +12,8 @@
|
|||
SWIGEXPORT void SWIG_init(void) {
|
||||
%}
|
||||
|
||||
%include <rkw.swg>
|
||||
|
||||
#define %Rruntime %insert("s")
|
||||
|
||||
#define SWIG_Object SEXP
|
||||
|
|
|
|||
17
Lib/r/rkw.swg
Normal file
17
Lib/r/rkw.swg
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
Warnings for R keywords, built-in names and bad names.
|
||||
*/
|
||||
|
||||
#define RKW(x) %keywordwarn("'" `x` "' is a R keyword, renaming to '_" `x`"'", rename="_%s") `x`
|
||||
|
||||
|
||||
/*
|
||||
Warnings for R keywords
|
||||
REFERENCE ????
|
||||
*/
|
||||
|
||||
RKW(except);
|
||||
RKW(in);
|
||||
RKW(next);
|
||||
|
||||
#undef RKW
|
||||
Loading…
Add table
Add a link
Reference in a new issue