Author:ptrace Comitter:ptrace Date:2026-02-04 01:34:54 UTC

'SetTraceLogLevel' had s32 as param, instead the enum 'TraceLogLevel'; 'UpdateCamera' had s32 as param, instead of the enum 'CameraMode'

diff --git a/.gitignore b/.gitignore index 49dd2fb..05ab1f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *generated.jai *.build/ *.so* *.a* diff --git a/Raylib/generate.jai b/Raylib/generate.jai index def487e..260e42c 100644 --- a/Raylib/generate.jai +++ b/Raylib/generate.jai @@ -68,10 +68,13 @@ generate_raylib_bindings :: (output_filename: string) {         table_add(*table, "IsMouseButtonReleased", { hardcoded_jai_string = "MouseButton",           argument_position = 0 });         table_add(*table, "IsMouseButtonPressed",  { hardcoded_jai_string = "MouseButton",           argument_position = 0 });         table_add(*table, "SetShaderValue",        { hardcoded_jai_string = "ShaderUniformDataType", argument_position = 3 });         table_add(*table, "SetTraceLogLevel",      { hardcoded_jai_string = "TraceLogLevel",         argument_position = 0 });         table_add(*table, "UpdateCamera",          { hardcoded_jai_string = "CameraMode",            argument_position = 1 });         return table;     }     /* These clash with Jai's Math module. These are the same structs anyway. */     NAMES_TO_DISCARD :: string.["Vector2", "Vector3", "Quaternion", "Vector4", "PI"]; @@ -92,6 +95,16 @@ generate_raylib_bindings :: (output_filename: string) {             }         }         if parent_decl && parent_decl.kind == .STRUCT {             if parent_decl.name == "Camera3D"             && decl.name == "projection"             && decl.kind == .DECLARATION             && decl.type.number_flags == ._32BIT | .SIGNED {                 change_type_to_enum(decl, "CameraProjection");                 log("Changed the type of '%(%)'", parent_decl.name, parent_decl.kind);             }         }         return .RECURSE;     };