File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -216,11 +216,12 @@ def parse_definition_args(function_name, signature)
216
216
def create_typeref ( definition :, function_name :, typeref_field :)
217
217
typeref_type =
218
218
if typeref_field
219
- typeref_field . gsub ( /^RBIMPL_ATTR_NONNULL\s *\( \( \) \) / , "" ) . strip
219
+ type = typeref_field . gsub ( /[A-Z_]+\s *\( \( .*\) \) / , "" ) . gsub ( "RUBY_SYMBOL_EXPORT_BEGIN" , "" )
220
+ Util . sanitize_type ( type ) # rubocop:disable Style/IdenticalConditionalBranches
220
221
else
221
222
# parse typeref in definition
222
223
type = definition [ 0 ...definition . index ( function_name ) ] . gsub ( "char *" , "char*" ) . strip
223
- Util . sanitize_type ( type )
224
+ Util . sanitize_type ( type ) # rubocop:disable Style/IdenticalConditionalBranches
224
225
end
225
226
226
227
typeref_pointer = nil
You can’t perform that action at this time.
0 commit comments