throw helpful errors when params supplied are not ctype pointers (#122)

This commit is contained in:
Richard Smith 2024-03-03 11:48:09 +00:00 committed by GitHub
parent 33dce4ecfd
commit 3744686f7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 77 additions and 19 deletions

View file

@ -41,6 +41,8 @@ def ctype_to_python_type(t):
return "int"
elif t == "double":
return "float"
elif "char * *" in t:
return "list[str]"
elif "char *" in t:
return "str"
elif "char" in t: