We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This experiment refers to the development of the zig-bindgen branch. Below you will find errors during the translation that should be corrected.
zig-bindgen
generated/binding.zig: [ FFI Work]
const std = @import("std"); pub const Doggo = extern struct { age: i32, name: [*:0]const u8, }; pub extern fn call_name(ptr: ?*Doggo, name: [*:0]const u8) anyopaque; pub extern fn is_whitespace(byte: u8) bool; pub extern fn mul(value1: usize, value2: usize) usize; pub extern fn add(value1: usize, value2: usize) usize;
Generated:
const std = @import("std"); pub const Doggo = extern struct { age: i32, _name: ?fn, // type error }; // missing pub keyword to public functions extern fn call_name( _ptr: ?fn, const constname: ?fn) anyopaque; // flags type error extern fn is_whitespace(byte: u8) bool; extern fn mul(value1: usize, value2: usize) usize; extern fn add(value1: usize, value2: usize) usize;
The text was updated successfully, but these errors were encountered:
Fixed!
Sorry, something went wrong.
No branches or pull requests
This experiment refers to the development of the
zig-bindgen
branch.Below you will find errors during the translation that should be corrected.
Expected
generated/binding.zig: [ FFI Work]
CBindgen
Generated:
The text was updated successfully, but these errors were encountered: