We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8c140 commit 3b537deCopy full SHA for 3b537de
_tools/ruby_h_to_go/lib/ruby_header_parser/parser.rb
@@ -62,7 +62,7 @@ def extract_struct_definitions
62
63
struct_name = parts[0]
64
65
- next unless should_generate_struct?(struct_name)
+ next unless data.should_generate_struct?(struct_name)
66
67
definitions << StructDefinition.new(
68
name: struct_name,
@@ -107,15 +107,6 @@ def read_definition_from_header_file(file, line_num)
107
""
108
end
109
110
- # Whether generate C struct to go
111
- # @param struct_name [String]
112
- # @return [Boolean]
113
- def should_generate_struct?(struct_name)
114
- struct_name = struct_name.downcase
115
-
116
- struct_name.start_with?("rb_")
117
- end
118
119
ALLOW_TYPE_NAME_PREFIXES = %w[rb_ st_].freeze
120
ALLOW_TYPE_NAMES = %w[id value].freeze
121
0 commit comments