Question help/info: pragma dynamic...
#1

Can explain me the #pragma dynamic [...] ? just optimize the memory ?
Reply
#2

It only increases the size of stack. Doesn't optimize anything. Usually found in scripts made by people who are too lazy to optimize things themselves, sometimes accompanied by #pragma tabsize 0 because they also don't know how to properly indent.
Reply
#3

OK, and the #assert and #emit ?
Reply
#4

#assert it pretty useless. You're better of using the #error directive instead. #assert will halt the compilation with some vague error if the expression that follows it evaluates to false. Like "Assertion failed: 500 == 100".

#emit puts raw amx opcodes into the file. Very advanced, even I don't know how to properly work with it.

I suggest you read the manual: http://pawnscript.******code.com/svn.../pawn-lang.pdf
Page 118 contains the information about preprocessor directives.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
#assert it pretty useless. You're better of using the #error directive instead. #assert will halt the compilation with some vague error if the expression that follows it evaluates to false. Like "Assertion failed: 500 == 100".

#emit puts raw amx opcodes into the file. Very advanced, even I don't know how to properly work with it.

I suggest you read the manual: http://pawnscript.******code.com/svn.../pawn-lang.pdf
Page 118 contains the information about preprocessor directives.
OK, Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)