Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error macro #91

Open
Tracked by #27
Aursen opened this issue Feb 3, 2025 · 0 comments
Open
Tracked by #27

Error macro #91

Aursen opened this issue Feb 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Aursen
Copy link
Contributor

Aursen commented Feb 3, 2025

For the moment, writing errors is a bit redundant. The aim is to create a macro that generates a structure similar to Anchor, with the possibility of entering the offset where the custom error number starts.

#[error]
pub enum Error {
  ...
}

or

#[error(start_at = 6000)]
pub enum Error {
  ...
}
@Aursen Aursen mentioned this issue Feb 3, 2025
30 tasks
@Aursen Aursen added the enhancement New feature or request label Feb 4, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant