From da575e42f582f4cd70d308d5ed9319c9c45364d7 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 15 Aug 2024 19:11:27 +0800 Subject: [PATCH] fix: update csharp interop code generator. - update csharp interop code generator to have short output result. --- CodeGen/BMapBindings/CSharpWriter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CodeGen/BMapBindings/CSharpWriter.java b/CodeGen/BMapBindings/CSharpWriter.java index 9e973f4..f9cc116 100644 --- a/CodeGen/BMapBindings/CSharpWriter.java +++ b/CodeGen/BMapBindings/CSharpWriter.java @@ -219,9 +219,7 @@ public class CSharpWriter { for (ExpFctDecl fctdecl : data) { // write annotation // summary (just plain function name) - helper.puts("/// "); - helper.printf("/// %s", fctdecl.mFctName); - helper.puts("/// "); + helper.printf("/// %s", fctdecl.mFctName); // parameter list for (ExpFctParamDecl paramdecl : fctdecl.mFctParams) { helper.printf("/// Type: %s. %s%s", paramdecl.mVarName, @@ -231,7 +229,7 @@ public class CSharpWriter { // return value helper.puts("/// True if no error, otherwise False."); - // write real declaration + // write real function declaration // first, write DllImportAttribute helper.printf( "[DllImport(g_DllName, EntryPoint = \"%s\", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]",