Browse Source

Added method signatures debugging output to vtable delegates.

pull/103/head
triton 12 years ago
parent
commit
c7612248fd
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

5
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -4,6 +4,7 @@ using System.Globalization; @@ -4,6 +4,7 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using CppSharp.AST;
using CppSharp.Utils;
using Type = CppSharp.AST.Type;
@ -1374,6 +1375,10 @@ namespace CppSharp.Generators.CSharp @@ -1374,6 +1375,10 @@ namespace CppSharp.Generators.CSharp
{
PushBlock(CSharpBlockKind.VTableDelegate);
var cleanSig = method.Signature.ReplaceLineBreaks("");
cleanSig = Regex.Replace(cleanSig, @"\s+", " ");
WriteLine("// {0}", cleanSig);
WriteLine("[SuppressUnmanagedCodeSecurity]");
WriteLine("[UnmanagedFunctionPointerAttribute(global::System.Runtime.InteropServices.CallingConvention.{0})]",
Helpers.ToCSharpCallConv(method.CallingConvention));

Loading…
Cancel
Save