You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If that code is built with default options, you will get warning 218 "old style prototypes used with optional semicolon". This hints at what is wrong: the line is seen as a C-style function prototype, not as a function implementation. So the script has a prototype for main, but not an implementation. Which is why no code is generated.
The "empty statement" in Pawn is {} (open and close curly braces). A semicolon is not an empty statement.
Though, there problems in the Pawn compiler laid bare by this issue:
If you build with the "-;" option (semicolons are not optional), there is no warning at all (and no generated code).
The compiler is supposed to signal the error that a script has no entry point (either "main" or any public function).
The following code:
generates the following output:
with main pointing at 2, so end of file. There is no RET or RETN
The text was updated successfully, but these errors were encountered: