Skip to content
New issue

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

Add a basic implementation for the Zig port with proper testings #478

Merged
merged 7 commits into from
Jan 24, 2024

Conversation

devraymondsh
Copy link
Member

Add a basic implementation for the Zig port with proper testing

  1. Boolean support
  2. Char support
  3. Short support
  4. Int support
  5. Long support
  6. Float support
  7. Double support
  8. String support

@devraymondsh
Copy link
Member Author

This is the process for creating the bindings, requiring only the Zig compiler without any external dependencies. Similar to the Rust version, it's likely unnecessary to generate them if the API remains stable. Remember to consistently use the master version of Zig.

cd source/metacall/include/metacall
zig translate-c metacall.h > metacall-bindings.zig -lc -I ../../../../build/source/metacall/include -I ../ -I ../../../../build/source/include

@viferga viferga merged commit d70f10a into metacall:develop Jan 24, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants