|
|
@ -2339,7 +2339,6 @@ namespace CppSharp.Generators.CSharp |
|
|
|
function = function.OriginalFunction; |
|
|
|
function = function.OriginalFunction; |
|
|
|
|
|
|
|
|
|
|
|
PushBlock(CSharpBlockKind.InternalsClassMethod); |
|
|
|
PushBlock(CSharpBlockKind.InternalsClassMethod); |
|
|
|
GenerateDeclarationCommon(function); |
|
|
|
|
|
|
|
WriteLine("[SuppressUnmanagedCodeSecurity]"); |
|
|
|
WriteLine("[SuppressUnmanagedCodeSecurity]"); |
|
|
|
|
|
|
|
|
|
|
|
string libName = Options.SharedLibraryName; |
|
|
|
string libName = Options.SharedLibraryName; |
|
|
@ -2409,7 +2408,7 @@ namespace CppSharp.Generators.CSharp |
|
|
|
@params.Add("int " + GeneratedIdentifier("forBases")); |
|
|
|
@params.Add("int " + GeneratedIdentifier("forBases")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
WriteLine("public static extern {0} {1}({2});", retType, |
|
|
|
WriteLine("internal static extern {0} {1}({2});", retType, |
|
|
|
GetFunctionNativeIdentifier(function), |
|
|
|
GetFunctionNativeIdentifier(function), |
|
|
|
string.Join(", ", @params)); |
|
|
|
string.Join(", ", @params)); |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|