rkw.swg 682 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. Warnings for R keywords, built-in names and bad names.
  3. */
  4. #define RKW(x) %keywordwarn("'" `x` "' is a R keyword, renaming to '_" `x`"'", rename="_%s") `x`
  5. #define RSWIGKW(x) %keywordwarn("'" `x` "' is a SWIG R reserved parameter name, renaming to '_" `x`"'", rename="_%s") `x`
  6. /*
  7. Warnings for R reserved words taken from
  8. http://cran.r-project.org/doc/manuals/R-lang.html#Reserved-words
  9. */
  10. RKW(if);
  11. RKW(else);
  12. RKW(repeat);
  13. RKW(while);
  14. RKW(function);
  15. RKW(for);
  16. RKW(in);
  17. RKW(next);
  18. RKW(break);
  19. RKW(TRUE);
  20. RKW(FALSE);
  21. RKW(NULL);
  22. RKW(Inf);
  23. RKW(NaN);
  24. RKW(NA);
  25. RKW(NA_integer_);
  26. RKW(NA_real_);
  27. RKW(NA_complex_);
  28. RKW(NA_character_);
  29. RSWIGKW(self);
  30. #undef RKW
  31. #undef RSWIGKW