Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DeborahOoi96 committed Feb 8, 2024
1 parent 985ac55 commit 7472d14
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/codegen/utilities/function_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,13 @@ def to_param_argtype(parameter):
# argtype to convert from unicode to bytes.
if parameter.ctypes_data_type == "ctypes.c_char_p":
return "ctypes_byte_str"
elif parameter.python_data_type == "datetime":
return "_lib_time.AbsoluteTime"
elif parameter.python_data_type == "timestampEvent":
return "ctypes.c_int32"
else:
return parameter.ctypes_data_type or parameter.python_data_type
else:
if parameter.ctypes_data_type == "ctypes.c_char_p":
return parameter.ctypes_data_type
elif parameter.python_data_type == "datetime":
return "ctypes.POINTER(_lib_time.AbsoluteTime)"
else:
return f"ctypes.POINTER({parameter.ctypes_data_type})"

Expand Down

0 comments on commit 7472d14

Please sign in to comment.