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

Function entry() is allowed to be called manually #657

Open
Daniel-Cortez opened this issue May 15, 2021 · 2 comments
Open

Function entry() is allowed to be called manually #657

Daniel-Cortez opened this issue May 15, 2021 · 2 comments

Comments

@Daniel-Cortez
Copy link
Contributor

Issue description:

entry() is a special function, it's called automatically on each state change, but for some reason it's also allowed to be called manually. Perhaps we should treat manual calls of this function as errors?

Minimal complete verifiable example (MCVE):

entry() <auto1:ST1> {}

main()
{
    entry();
}

Workspace Information:

  • Compiler version: 3.2.3664, 3.10.10
  • Command line arguments provided (or sampctl version):
  • Operating System:
@ghost
Copy link

ghost commented Sep 17, 2021

Perhaps we should treat manual calls of this function as errors?
Absolutely.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the state: stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant