Skip to content

Conversation

@jonathanpallant
Copy link
Contributor

It can be useful to reason about the fact the main() function (the function decorated with #[entry]) can only be called once. So now the macro properly hides the main function so it's much harder to call it a second time.

It can be useful to reason about the fact the main() function
(the function decorated with `#[entry]`)  can only be called once.
So now the macro properly hides the main function so it's much
harder to call it a second time.
@jonathanpallant
Copy link
Contributor Author

I've made the same change to the other vector attributes (#[exception] and #[irq]).

@adamgreig adamgreig added this pull request to the merge queue Jan 20, 2026
Merged via the queue into main with commit 93bd56b Jan 20, 2026
39 checks passed
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