Update generate_functions.py

This commit is contained in:
Nikolas 2020-11-29 11:34:01 +01:00 committed by GitHub
parent 813cdfe4f3
commit c26f12bc9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,8 @@ def c_to_zig_type(t: str) -> str:
t = t.replace("const ", "") t = t.replace("const ", "")
if t == "float": if t == "float":
t = "f32" t = "f32"
if t == "double":
t = "f64"
if t == "int": if t == "int":
t = "c_int" t = "c_int"
if t == "unsigned int": if t == "unsigned int":