Are stocks and functions faster in a include or in pawn?
#5

Quote:
Originally Posted by Mellnik
Посмотреть сообщение
The "stock" keyword just tells the compiler to not throw a warning if the defined variable or function is not used in the script. Therefore "stock" can be omitted in most cases which makes the function a naked one.
Actually it doesnt just supress the warnings, but removes the whole function/variable from the script for compiling if it isnt used. This then reduces the amx size. Using stocks is extremely important for utility includes that provide a large number of different functions.
Reply


Messages In This Thread
Are stocks and functions faster in a include or in a plugin? - by SickAttack - 27.06.2014, 20:05
Re: Are stocks and functions faster in a include or in pawn? - by Emmet_ - 27.06.2014, 20:35
AW: Are stocks and functions faster in a include or in pawn? - by Mellnik - 27.06.2014, 20:38
Re: Are stocks and functions faster in a include or in pawn? - by Kar - 28.06.2014, 20:28
Re: AW: Are stocks and functions faster in a include or in pawn? - by Mauzen - 28.06.2014, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)