Skip to content

Commit a477424

Browse files
committed
Point out potential more lax pointer condition, currently disabled
1 parent 03fc55d commit a477424

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/conversion_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def prepare_native_to_swift_callback_arguments(cls, argument_types, array_unwrap
297297
if received_raw_type == 'LDK' + published_swift_type:
298298
swift_local_conversion_prefix = f'{published_swift_type}(pointer: '
299299
swift_local_conversion_suffix = ')'
300+
# TODO: see if `current_argument_details.pass_by_ref` condition is necessary
300301
if current_argument_details.passed_as_ptr and current_argument_details.pass_by_ref:
301302
swift_local_conversion_suffix = ').dangle()'
302303
elif received_raw_type.startswith('LDKCVec') and published_swift_type.startswith('[C'):

0 commit comments

Comments
 (0)