File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
_tools/ruby_h_to_go/lib/ruby_h_to_go Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ def generate_go_content
52
52
53
53
go_function_lines << "func #{ go_function_name } (#{ go_function_args . join ( ", " ) } ) #{ go_function_typeref } {"
54
54
55
- call_c_method = "C.#{ name } ("
56
-
57
55
casted_go_args = [ ]
58
56
char_var_count = args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :ref }
59
57
chars_var_count = args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :str_array }
@@ -69,8 +67,7 @@ def generate_go_content
69
67
after_call_function_lines . push ( *after_lines )
70
68
end
71
69
72
- call_c_method << casted_go_args . join ( ", " )
73
- call_c_method << ")"
70
+ call_c_method = "C.#{ name } (#{ casted_go_args . join ( ", " ) } )"
74
71
75
72
go_function_lines . push ( *before_call_function_lines )
76
73
cast_func = typeref . cast_func_for_function_return
You can’t perform that action at this time.
0 commit comments