fix: update csharp interop code generator.
- update csharp interop code generator to have short output result.
This commit is contained in:
parent
a2fb376231
commit
da575e42f5
|
@ -219,9 +219,7 @@ public class CSharpWriter {
|
||||||
for (ExpFctDecl fctdecl : data) {
|
for (ExpFctDecl fctdecl : data) {
|
||||||
// write annotation
|
// write annotation
|
||||||
// summary (just plain function name)
|
// summary (just plain function name)
|
||||||
helper.puts("/// <summary>");
|
helper.printf("/// <summary>%s</summary>", fctdecl.mFctName);
|
||||||
helper.printf("/// %s", fctdecl.mFctName);
|
|
||||||
helper.puts("/// </summary>");
|
|
||||||
// parameter list
|
// parameter list
|
||||||
for (ExpFctParamDecl paramdecl : fctdecl.mFctParams) {
|
for (ExpFctParamDecl paramdecl : fctdecl.mFctParams) {
|
||||||
helper.printf("/// <param name=\"%s\">Type: %s. %s%s</param>", paramdecl.mVarName,
|
helper.printf("/// <param name=\"%s\">Type: %s. %s%s</param>", paramdecl.mVarName,
|
||||||
|
@ -231,7 +229,7 @@ public class CSharpWriter {
|
||||||
// return value
|
// return value
|
||||||
helper.puts("/// <returns>True if no error, otherwise False.</returns>");
|
helper.puts("/// <returns>True if no error, otherwise False.</returns>");
|
||||||
|
|
||||||
// write real declaration
|
// write real function declaration
|
||||||
// first, write DllImportAttribute
|
// first, write DllImportAttribute
|
||||||
helper.printf(
|
helper.printf(
|
||||||
"[DllImport(g_DllName, EntryPoint = \"%s\", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]",
|
"[DllImport(g_DllName, EntryPoint = \"%s\", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user