Moved constant renames from the c++ code to ruby.swg to reuse the new %rename functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
16c4a594e7
commit
f4d48d7bfc
2 changed files with 8 additions and 7 deletions
|
|
@ -7,6 +7,11 @@
|
|||
/* ------------------------------------------------------------
|
||||
* The Ruby global rename rules
|
||||
* ------------------------------------------------------------ */
|
||||
/* Class names are CamelCase */
|
||||
%rename("%(ctitle)s", %isclass) "";
|
||||
|
||||
/* Constants are UPPER_CASE */
|
||||
%rename("%(upper)s", %isconstant) "";
|
||||
|
||||
/* Method names should be changed so that they are
|
||||
lower_case_with_underscores */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue