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

Added shorthand syntax for Rust objects in macros #662

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

bvssvni
Copy link
Member

@bvssvni bvssvni commented Jun 22, 2020

See #661

This PR adds # as a shorthand notation for Rust objects in macros.

For example:

// The object `Foo` is automatically converted to and from `RustObject`.
dyon_fn!{fn foo(a: #&Foo, b: #&Foo) -> #Foo { ... }}

@bvssvni bvssvni merged commit 68b7837 into PistonDevelopers:master Jun 22, 2020
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.

1 participant