Skip to content

Commit

Permalink
Function pointers should be const
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnau478 committed Aug 22, 2023
1 parent e3f3e78 commit 9db4d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ pub const ExportTypeVec = extern struct {
extern "c" fn wasm_exporttype_vec_delete(*ExportTypeVec) void;
};

pub const Callback = *fn (?*const Valtype, ?*Valtype) callconv(.C) ?*Trap;
pub const Callback = *const fn (?*const Valtype, ?*Valtype) callconv(.C) ?*Trap;

pub const ByteVec = extern struct {
size: usize,
Expand Down

0 comments on commit 9db4d80

Please sign in to comment.