compiler icon indicating copy to clipboard operation
compiler copied to clipboard

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

Open Daniel-Cortez opened this issue 4 years ago • 2 comments

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:

Daniel-Cortez avatar May 15 '21 14:05 Daniel-Cortez

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

Kwarde666 avatar Sep 17 '21 10:09 Kwarde666

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

stale[bot] avatar Jan 09 '22 03:01 stale[bot]