pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
303 stars 70 forks source link

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

Open Daniel-Cortez opened 3 years ago

Daniel-Cortez commented 3 years ago

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:

ghost commented 2 years ago

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

stale[bot] commented 2 years ago

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