SA-MP Forums Archive
Question help/info: pragma dynamic... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question help/info: pragma dynamic... (/showthread.php?tid=365609)



Question help/info: pragma dynamic... - Speed++ - 03.08.2012

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


Re: Question help/info: pragma dynamic... - Vince - 03.08.2012

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.


Re: Question help/info: pragma dynamic... - Speed++ - 03.08.2012

OK, and the #assert and #emit ?


Re: Question help/info: pragma dynamic... - Vince - 03.08.2012

#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.


Re: Question help/info: pragma dynamic... - Speed++ - 03.08.2012

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