Skip to content

Commit da575e4

Browse files
committed
fix: update csharp interop code generator.
- update csharp interop code generator to have short output result.
1 parent a2fb376 commit da575e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CodeGen/BMapBindings/CSharpWriter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ public static void writeCSharpCode(Vector<ExpFctDecl> data) throws Exception {
219219
for (ExpFctDecl fctdecl : data) {
220220
// write annotation
221221
// summary (just plain function name)
222-
helper.puts("/// <summary>");
223-
helper.printf("/// %s", fctdecl.mFctName);
224-
helper.puts("/// </summary>");
222+
helper.printf("/// <summary>%s</summary>", fctdecl.mFctName);
225223
// parameter list
226224
for (ExpFctParamDecl paramdecl : fctdecl.mFctParams) {
227225
helper.printf("/// <param name=\"%s\">Type: %s. %s%s</param>", paramdecl.mVarName,
@@ -231,7 +229,7 @@ public static void writeCSharpCode(Vector<ExpFctDecl> data) throws Exception {
231229
// return value
232230
helper.puts("/// <returns>True if no error, otherwise False.</returns>");
233231

234-
// write real declaration
232+
// write real function declaration
235233
// first, write DllImportAttribute
236234
helper.printf(
237235
"[DllImport(g_DllName, EntryPoint = \"%s\", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]",

0 commit comments

Comments
 (0)