Quote:
Originally Posted by Arkshine
So, writting Function() is the same as static Function(), it would be implicit by default.
|
EDIT: Nevermind, AMXx compiler ignores section directives
No:
PHP Code:
static Function() { server_cmd("exit"); }
#section gaben
// oh my gosh my function is lost!
Quote:
|
Originally Posted by Pawn Language Guide
#section name
Starts a new section for the generated code. Any variables and
functions that are declared “static” are only visible to the section
to which they belong. By default, each source file is a separate
section and there is only one section per file.
With the #section directive, you can create multiple sections in a
source file. The name of a section is optional, if it is not set, a unique
identifier for the source file is used for the name of the section.
Any declared section ends automatically at the end of the file.
|