Browse Source

Added an helper method to set the name of a class method.

pull/1/head
triton 13 years ago
parent
commit
7f7d774fdc
  1. 11
      src/Generator/LibraryHelpers.cs

11
src/Generator/LibraryHelpers.cs

@ -213,6 +213,17 @@ namespace Cxxi
@class.IsOpaque = true; @class.IsOpaque = true;
} }
public void SetNameOfClassMethod(string name, string methodName,
string newMethodName)
{
foreach (var @class in FindClass(name))
{
var method = @class.Methods.Find(m => m.Name == methodName);
if (method != null)
method.Name = newMethodName;
}
}
#endregion #endregion
#region Function Helpers #region Function Helpers

Loading…
Cancel
Save